How to 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.

Add nofollow links in WordPress navigation menus

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.

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

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.

Enter nofollow in the link relationship option, tick the option to Open link in a new window/tab and save the changes.

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)

Post last updated:

5 responses to “How to add nofollow links in WordPress navigation menus (and open in a new tab)”

  1. Very well explained, keep it up.

  2. Thank You it is beneficial for me, I just started blogging, and I was not aware of following and dofiollow. but I read an article about NoFollow, since then I am looking for a plugin to add NoFollow on my Internal and outbound link

  3. Thank you very much for an interesting and useful review!

  4. Thank you it is really helpful for me. Now I am a regular visitor of this blog and I really likes the way you present articles.

  5. Thank You it is beneficial for me, I just started blogging, and I was not aware of following and dofollow. but I read an article about NoFollow, since then I am looking for a plugin to add NoFollow on my Internal and outbound link

Join over 1,000 creators and small biz owners and be part of The Roundup

Ready to build your website, grow your audience and monetise your platforms? Receive the latest WordPress news, social media updates, SEO tips and industry insights straight to your inbox.

By signing up you’ll receive our fortnightly newsletter and free resources. No spam or unnecessary emails. You can unsubscribe at any time.