Add Nofollow Links in WordPress Navigation Menus (and open in a new tab)

There may come a time when you want to add a nofollow tag to links in your navigation – whether for external links, social media icons or something else. This post will show you how to add nofollow links in WordPress navigation menus and how to make them open in a new tab/window so that your visitors don’t leave your site.

Not sure what nofollow links are and when you need to use them? Understanding NoFollow & DoFollow Links – why you NEED to use NoFollow for Sponsored Content

Nofollow links tell Search Engines not to follow the link and that it shouldn’t influence the SERP. It is recommend that you use NoFollow Links on any links that have any kind financial gain behind them.

How to Add Nofollow Links in WordPress Navigation Menus

  1. From your WordPress Dashboard, go to Appearance > Menu. Click on Screen Options at the top right corner of the screen and check the boxes next to Link Relationship (XFN) and Link Target options.
  2. How to add nofollow links in WordPress navigation menus (and make navigation links open in new tab/window)

  3. Now click the links tab and add your custom link. In the expanded menu item, you’ll now see Link Relationship and Open link in a new window/tab.
  4. Enter nofollow in the link relationship option, tick the option to Open link in a new window/tab and save the changes.
  5. How to add nofollow links in WordPress navigation menus (and make navigation links open in new tab/window)

If you check the HTML source for your link, it should now show the nofollow attribute.

How to add nofollow links in WordPress navigation menus (and make navigation links open in new tab/window)

Leave a Reply

Thank you so much for taking the time to comment! Your email will not be published or shared but you will recieve an email if your comment has a reply. Need help with a tutorial? Check out our Coding + Consultation service for one-on-one assistance.