• Skip to main content
  • Skip to primary sidebar

WPisLife

WordPress - Blogging - Internet Marketing

  • WP Commerce
  • WP Hosting
  • WP Plugins
  • WP Themes
  • WP Tutorials
  • Product Reviews

Date Published: May 8, 2017 | By: Marvin

How To NoFollow Links in Navigation Menus

29
SHARES
ShareTweetFree Guide

In this tutorial, I will teach you how to add a “nofollow” attribute on the links in a navigation menu.

Why Would You “Nofollow” A Link Anyway?

Adding a rel=”nofollow” attribute to a link is mainly done for SEO purposes, as it tells Google and other search engine crawlers that you don’t want to pass the “link juice” to a certain url; but in addition to this, as per Google’s policy, links should also be nofollowed if it falls on any of the following:

  • You are linking to an untrusted content

, How To NoFollow Links in Navigation Menus

  • You are linking to paid links

, How To NoFollow Links in Navigation Menus

  • You want to prioritize other links

, How To NoFollow Links in Navigation Menus

Some other reasons that you need to add a rel=”nofollow” attribute

  • You are linking to an affiliate link (which you really should nofollow)
  • You are linking to some of your pages which does not require to pass the link juice (about page, contact page, privacy policy, disclaimers, terms of services, and other pages like that) so that it will concentrate the link juice to the links that matter the most (this is very beneficial especially if your website is in a “silo structure”
  • You are just selfish and you don’t want to pass the link juice to external sites

Adding the rel=”nofollow” attribute

Adding this attribute to a link is really easy for ordinary links (page and post links). You just need to follow the sample code below:

<a href="http://www.url.com/some-pages/" rel="nofollow">Anchor Text</a>

But the million dollar question is this – how about if you want to add this attribute to a link in a navigation menu?

There is actually a way to do it, and that is what I will be showing you below:

Step 1: Go to ‘Appearance > Menus’

, How To NoFollow Links in Navigation Menus

Step 2: Enable ‘Link Relationship (XFN)’

You can find this option on the ‘Screen Options’ on the upper right corner of your WordPress Menu Page. Just click on the arrow to reveal the options then locate the ‘Link Relationship (XFN)’ option and check the box beside it

, How To NoFollow Links in Navigation Menus

Step 3: Add the “nofollow” Attribute

On your Menu Structure, select the item that you want to nofollow and click the arrow on the right to reveal the configuration options. locate the ‘Link Relationship (XFN)’ then enter “nofollow” on the field. (refer to the image below). Click ‘Save Menu’ once you’re done.

, How To NoFollow Links in Navigation Menus

And that’s it! Your chosen links on the navigation menus are now nofollowed.

How To Check

To check if you have done it correctly go to a browser and enter your website url on the address bar. Once your site has loaded, if you are using firefox, use right click then select ‘Inspect Element’

, How To NoFollow Links in Navigation Menus

Once the app has loaded, click on the ‘pick an element from a page’ (see image for reference)

, How To NoFollow Links in Navigation Menus

Then click on a page element that you want to check. In this example, I tried to nofollow my “About Page” so I will click on that

, How To NoFollow Links in Navigation Menus

Once you clicked on that element, the properties will be shown, and as you can see from the image above, there is a nofollow attribute in the link, which verifies that we have successfully nofollowed our desired navigation menu link.

Wrapping Up

Now that you already now how to do it, why not try it on your own WordPress blog as well. Just follow the steps above so you won’t be lost in the process.

If you think that this tutorial helped you, you can show your appreciation by sharing this post, and if ever you have some questions, don’t hesitate to contact us or you can just comment below

Related

Affiliate Disclaimer: Some posts and pages, especially product review articles, may contain affiliate links that if you click on that link and decide to buy the product, I will get a commission.

Browse by Categories

  • Journeys
  • Making Money
  • Other Products Reviews
  • Product Reviews
  • WordPress Commerce
  • WordPress Hosting
  • WordPress Plugins
  • WordPress Security
  • WordPress Themes
  • Wordpress Tutorials
  • WP Plugin Reviews
  • WPisLife Blurbs

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

DISCOVER THE EXACT BLUEPRINT ON HOW I BUILT WPISLIFE FROM SCRATCH AND EARNED MY FIRST $4K ONLINE…Click Here To Learn More

Popular Posts

  • Link Whisper Plugin Review: Can it Really Help You?
  • WooDropship Review: An In-Depth Look At This Plugin
  • Spocket Review Dropshipping Made Easier
  • Shopmaster Review: Is It An App Worth Getting?
  • Oberlo Review: Yet Another Dropshipping App

Copyright © 2023 · WPisLIFE