Skip to main content

Custom taxonomy SEO using Yoast WordPres...

Custom taxonomy SEO using Yoast WordPress SEO plugin

The Yoast WordPress SEO plugin doesn’t support SEO for custom taxonomies. Heres is a quick snippet to add in your functions.php file: function cus_update_seo_title( $str ) {     if ( is_tax( ‘your_taxonomy_slug’ ) ){         return ‘here comes custom title ‘.single_term_title( ”, false ).’ and more here if required’;     } else {        […]

How to customise CSS for a specific word...

How to customise CSS for a specific wordpress site when using multi site

I was using the same template for 2 different websites and had to customize some CSS only on 1 site. I still wanted to keep only 1 template version. I edited the template body classes using the wordpress body_class function. Before the changes the body html tag looked like this: <body <?php body_class(); ?>> and after […]

Nice URL for WordPress custom variables

Nice URL for WordPress custom variables

WordPress’s permalink feature is already great and really helpful for good SEO. But sometimes you need custom variables in your url like http://www.ptitsuisse.com/custom-variable-example/?brand=htc&model=desirehd but this is not SEO friendly, it’s hard to remember and doesn’t look good. http://www.ptitsuisse.com/custom-variable-example/htc/desirehd This is better and needs only a small change to your theme functions.php file to work. function […]