How to Add Nofollow Links in WordPress Navigation Menus

Many site owners prefer to add a nofollow tag to all external links.Β Adding a nofollow attributeΒ to links in WordPress is extremely simple. However, it is not as clear forΒ navigation menus. In this article, we will show you how to add nofollow links in WordPress navigation menus.

First start by adding the external link to your WordPress navigation menu just like you would add any custom link.

Simply visitΒ Appearance Β» MenusΒ and click on the link tab. Enter the URL and link text and then click on add to menu button.

The external link you added will now appear in theΒ Menu StructureΒ column. You need to click on the downward arrow to expand the menu item. Like this:

Next, click on theΒ Screen OptionsΒ button at the top right corner of the screen and check the boxes next toΒ Link Relationship (XFN)Β andΒ Link TargetΒ options.

Now scroll back down to your expanded menu item, and you will notice two new options. Link Relationship and Open link in a new window/tab. You need to enter nofollowΒ in the link relationship option. You can also check the open link in new window/tab option if you want.

Lastly, click on theΒ Save MenuΒ button to store your changes.

That’s all, you can now preview your site.

To make sure that a nofollow attribute is added to your link, you can take the mouse to the external link, right click and select inspect element. Your browser window will split into two. In the bottom window you will be able to see the HTML source for your link. It will display the nofollow attribute with your link.

We hope this article helped you learn how to add nofollow links in WordPress navigation menus. You may also like our tutorial on how toΒ add image icons to navigation menusΒ in WordPress.

If you liked this article, then please subscribe to ourΒ YouTube ChannelΒ for WordPress video tutorials. You can also find us onΒ TwitterΒ andΒ Google+.

Leave a Reply

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

Pin It on Pinterest

Add address