Back to Top

To Remove Non Valid REL Tag from Category url in WordPress

To Remove Non Valid REL Tag from Category url in wordpress

WordPress Blog might be updated every day of the original article. WordPress will automatically insert a REL Tag in Category URL. Well, today I am going to share with you how to remove unnecessary Non Valid REL Tag from Category URL in WordPress.

Rel Tag is one of several MicroFormats in HTML. Th Rel is an attribute of HTML which is used by search engines to measures the relationship between the target link and the resource on which it appears but rel=”category” is nonvalid tag as per google rules so you need to remove that rel from the URL.Optimization method increases the rel attribute such as WordPress link tags adds rel = “category”.

If you use the W3 Validator to check your WordPress page, you will get the “Bad value category tag for attribute rel on element” error of category tag for attribute rel because WordPress is adding the rel=”category” tag to the link but now this tag is not valid for HTML5 W3C validator.

Let’s understand by code to solve the rel =”category” tag problem in order to adopt the W3C validator. If rel = “category” tag is not recognized by W3C HTML5 validator, no need to remove it.

You need to add above filter into your theme’s functions.php file to work.That’s it and check in your browser.I have been added this code in this blog, you can view the link to the category verify rel tag attribute. If you have another way to also welcome comments and share with us your experience.

Have you checked rel tag in your wordpress site? Have tested your site in HTML5 W3C validator and got this kind of error? Let me know in the comments!

If you find this article useful, share it with your friends!

Share:
Share on Facebook1

Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to use Session in Joomla

Posted on 4 years ago

Bhumi

How to use Short Hand Array in PHP

Posted on 1 year ago

Bhumi

The Readers’ Poll – August 2012

Posted on 4 years ago

Bhumi

How to use Change DB Prefix Plugin

Posted on 4 years ago

Bhumi

How does CI/CD works on AWS?

Updated 17 years ago

Bhumi

Overview of Amazon Web Services (AWS)

Updated 17 years ago

Bhumi

How to add ColorDots in FullCalender?

Updated 17 years ago

Bhumi

A Beginner’s Guide To Composer

Updated 17 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 1 year ago

Bhumi

The Reader’s Poll – August 2014

Posted on 2 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 2 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 2 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 3 years ago

Bhumi