rel=”category tag” Error : Fix for HTML5 WordPress Themes


rel=”category tag” Error often shows up in HTML5 Themes of . Here is a trick to quickly fix this issue within few minutes.

 

Background behind rel=”category tag” Error

 

rel=”category tag” Error comes as  rel=”category tag” is not a valid HTML5 syntax. It is suitable for xHTML Transitional. It is matter of fact, Transitional probably performs better for WordPress, may be due to poor coding of the HTML5 themes or something else.

Whatever the reason is, we need to fix this  rel=”category tag” Error.

 

Quickfix for rel=”category tag” Error

This snippet should work fine for all. Here is the code you actually need :

 

add_filter( ‘the_category’, ‘add_nofollow_cat’ );
function add_nofollow_cat( $text ) {
$text = str_replace(‘rel=”category tag”‘, “”, $text); return $text;
}

 


 

rel=”category tag” Error

If any copyright text appears after the end of the last } , delete the text after the end of last }.

Now, there are two ways to add this PHP code. One is by it to active Theme’s (or child theme’s) fuctions.php file or to add on specific template files.

Adding to fuctions.php is shortcut, but it is better to be avoided as it can add up other problems as reported by WordPress users in WordPress forum. So you have to find the template file for your theme and have to add this snippet to get rid of rel=”category tag” error.

Signature


Incoming search terms:

how to fix rel category tag error
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
About Abhishek

Abhishek Ghosh is an Orthopedic Surgeon, Inventor with 216 Patents, Current editor of The Customize Windows Media Group. You can follow and know more about Dr. +Abhishek Ghosh on Google Plus and follow on Twitter as @AbhishekCTRL.

Speak Your Mind

*