1. Home
  2. Knowledge Base
  3. Stop adding rel=”ugc” to links in comments

Stop adding rel=”ugc” to links in comments

In this knowledgebase article, we’re going to walk you through how to stop adding rel=”ugc” to links in the comments.

What is the UGC attribute?

Let’s begin by understanding what is the UGC attribute.

The UGC (user-generated content) attribute allows the search engines to understand that certain hyperlinks are not editorially endorsed. The UGC tag also informs Google that the link is included within user-generated content, such as a user comment or a forum post, and clarifies that the link is not an advertisement.

This is how the UGC (‘user-generated content’) attribute looks like: 

<a href="http://www.example.com/" rel="ugc">Example UGC text</a>

UGC links work similarly to nofollow links. They also inform Google not to follow or vote for that particular link.

As per Google’s announcement on Sept 10, 2019, we add the UGC attribute since the links in the comments are user-generated. WordPress 5.3 has introduced new functions to add UGC attribute to links and implements them in comments, and hence there’s no need to worry about this attribute anymore.

If you still want to remove the attribute then please add the following filter code in your theme:

add_filter( ‘rank_math/frontend/add_ugc_attribute’, ‘__return_false’ );

If you still have any questions about how to stop adding rel=’ugc’ to the links in the comments – you’re always more than welcome to contact our dedicated support team. They are available 24/7, 365 days a year…

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Know more about the PRO Version

Was this article helpful?

Still need help?


Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket