Links controls are available in your WordPress Editor by default, but Rank Math has powered it with more useful options. So with the link controls, you can now add rel attributes to specific links inside the content without having to make any changes to the HTML code by yourself.
In this knowledgebase article, we’ll show you how to use the link control options available in Rank Math.
Table of Contents
1 How to Use Link Controls in Block Editor?
The Link Controls are available to use as soon as you install Rank Math, and you don’t need to enable any specific modules. To enable or disable link attributes in Block Editor, follow the exact steps we’ve discussed below.
1.1 Edit the Post or Page
Start by opening the post or page that you want to edit in the WordPress editor screen.
1.2 Open the Link Controls
To add a new link, copy the URL to your device’s clipboard. Then select the text that you wish to link in the Editor.
Now click the link icon from the block’s toolbar that appears on the Gutenberg editor.
Here you can add your link in the URL field, and press Enter to add the link. To open the link controls, click the Edit icon.
This will open a box below your link; click theĀ Advanced option.Ā Youāll see a number of link control options.
1.3 Enable/Disable Attributes
From the link controls, you can select to enable or disable specific options, as shown below. We’ll also cover what these options do shortly in this article. Once you’ve enabled a specific option, click the Save button.
1.4 Save the Post or Page
Once you’ve added the essential link attributes, don’t forget to update the post, or in case if this is a new post, hit the Publish button.
2 How to Use Link Controls in Classic Editor?
While the previous steps were specific to Block Editor, the following steps will guide you on how to add link controls in the Classic Editor, which is quite similar.
2.1 Open the Link Controls
Start by opening the post or page that you want to edit with the Classic Editor. In the Content area that appears in the middle of the screen, select the text you want to link and click on the Insert/Edit Link icon from the Classic Editor toolbar.
In the URL field that appears, you can add the link and click the gear icon to open the link options.
2.2 Enable or Disable Attributes
You can find the various link control options in the popup that appears on the screen. You can select or unselect these checkboxes to enable or disable these attributes.
2.3 Update Link
Once you have made the changes to the link controls, click the Update button at the bottom of the popup.
2.4 Save Post
Finally, update the post or click the Publish button in case if this is a new post.
3 Available Link Controls
Now that you’re aware of how to use the link controls, let us look at the various link control options available and what they do.
3.1 Open in New Tab
The first option, Open in new Tab, is self-explanatory. It enables the link to open in a new tab when a reader clicks the link on the front end.
Once you enable this option, the attribute target=_blank
will be added to the link.
This option is available in WordPress by default, and Rank Math does not make any changes to it. However, to save your time from manually configuring this option for all external links, Rank Math includes a global setting (Open External Links in New Tab/Window).
But please note that when you enable the global setting, it is applied dynamically and does not change the content stored on your site. So, all the external links will be set to open in a new tab, irrespective of whether you’ve enabled/disabled the link control for individual links.
3.2 Set to Nofollow
The second option, Set to nofollow, allows you to add the nofollow attribute to specific links right from the WordPress Editor.
Google introduced the nofollow attribute to let publishers communicate they don’t endorse the link, and hence the page rank should not be passed to the linked website. You can consider using the nofollow attribute to unapproved links inside the contributor’s content.
So when you choose the Set to nofollow option, the nofollow attribute will be added to the link.
As you might have already noticed, Rank Math has got a few different options in General Settings to handle nofollow links. The global settings apply nofollow dynamically when the condition is met, in spite of your link control configuration for individual links.
Caution: Adding a nofollow attribute to internal links is not recommended unless you have a specific purpose. When internal links are nofollowed, crawlers take them as a cue and don’t crawl them, which is a bad behavior. If your pages end up not being crawled, then they will not have the opportunity to rank in search results, and you could lose potential traffic.
3.3 Set to Sponsored
The sponsored attribute is a relatively new attribute introduced by Google when compared to the nofollow attribute. Google encourages publishers to disclose their paid links with this attribute. Although the sponsored attribute works the same way as that of nofollow, it hints to Google the monetary nature of the link. Google has also communicated publishers to use the sponsored attribute for affiliate links.
Having said that, if your site is already using the nofollow attribute for affiliate links, then you don’t need to make the changes all throughout your website. But if this is a relatively new site, then it’s worth implementing the changes to communicate the nature of the link effectively to the search engine.
The toggle for Set to sponsored lets you configure that exactly.
When you enable the option, Rank Math will include a sponsored
rel attribute to the link, as shown below.
3.4 Set to About PRO
Unlike the previous options, this option will let you set a Schema attribute and not a rel attribute. When a link is set with the data Schema attribute for about, Rank Math will also mark the link with the About Schema.
The About Schema is used to communicate what the main topic of the article is about. This is more accurate when you’re marking up links from informational sources such as Wikipedia, so Google could better relate the entity being described with your content as well.
Once you enable the Set to about option on the front end, you can find the data Schema attribute being added to the link to indicate the link is being marked with the About Schema.
You can also check the page with Schema Testing tools like Google’s Rich Results Testing tool or Schema Validator to check the added Schema. Here is the snippet showing the About Schema added.
3.5 Set to Mentions PRO
When you enable the Set to mentions option, the link will be marked up with Mentions Schema, which is similar to the About Schema that we’ve just discussed.
It is worth noting that the About Schema is used for describing the main topic of the page, while the Mentions Schema is used for describing any related topic which could be mentioned on the page and not necessarily be the main topic of the page.
For more details on the usage of the About and Mentions Schema, you can also refer to its dedicated KB.
Once you set the link to Mentions Schema, you can find the data Schema attribute added to the link in the front end.
And here is a snippet that shows how the Mentions Schema is used.
3.6 User Generated Content (UGC)
In addition to the above-discussed attributes, Rank Math adds the ugc (User Generated Content) attribute automatically to all the links in the comments.
Although there is no ranking benefit in adding the ugc attribute, it helps Google understand that the link was added by someone outside the publisher’s control and hence shall not be trusted.
There is no specific option to configure this, Rank Math automatically adds this attribute to the links in the comments. But in case, if you want to disable this setting, you can make use of this filter. Here is how the links in the comments would look like.
As you can notice from the above image, the link also includes the nofollow attribute. Since version 5.3, WordPress automatically adds nofollow and ugc to links in the comments. WordPress adds both nofollow and ugc, considering the search engines that might support only the nofollow attribute. Hence WordPress includes both nofollow and ugc.
For some reason, if the ugc attribute is not added by WordPress, then Rank Math will add them for you, so you can rest assured spammers cannot pass on your site’s link juice to third-party websites through comment links.
And that’s it! We hope the article helped you understand the various link controls of Rank Math to add rel and data Schema attributes. If you still have absolutely any questions about using link controls, please feel free to reach our support team directly from here, and we’re always here to help.