Making Top Menu Links NOFOLLOW
July 27, 2011
A common question I get asked is how to make certain links no follow in the menu at the top of your WordPress site. Most templates don’t have this feature built-in, but fortunately WordPress does and it’s relatively easy to setup a header menu where you choose which links follow and which ones are no follow. In this quick tutorial I will show you how to do it. On my site I’m using the thesis theme, but any template that allows you to use WordPress menus to the menu at the top will work.
Here is a screenshot of the top of my site – I am using the SEO for Firefox plugin to highlight nofollow links:
In this tutorial, I want to change the Disclaimer, Privacy Policy and Terms of Use links to Nofollow, but keep the Home link as do follow.
STEP 1 – Change your theme to use WordPress Nav Menus rather than the menu system that is built into your theme (if necessary)
In the thesis theme you can find this on the site options screen. You need to check your theme to find out how to switch:
STEP 2 – Appearance –> Menus screen & Setting up the Menu.
Click across to the Appearance –> Menu screen in your Dashboard.
Click the Create Menu button, and give it a name. I’ll call mine “Top Menu”
If your theme supports WordPress menus, then you will see the following where you can select the menu you just created so it is used. With Thesis theme you can assign your newly created menu as the “Primary Menu” which is the one at the top of the screen. In some themes, you may be able to define more than just the Primary Menu. Here is what it looks like in Thesis:
I have selected Top Menu to be used as my main menu. If I save the Primary Menu, and refresh my site, here is what I have:
The Menu is gone. That is simply because I have not added any pages or posts to the menu. Let’s do that now.
STEP 3 – Adding items to your menu.
On the Menu screen you will have a list of pages and a list of posts on your site. These can be added to the menu we are creating. In my example, I want to add three PAGES:
I have checked them, and then click the Add to Menu button. You can now see that they are added to the menu:
However, I need my homepage link as well. I can add this as a custom link by typing in the URL and link text, and hitting the Add to Menu button:
This menu item will be added to the bottom, but you can drag and drop to reorganise the links. NOTE: You can create nested menus as well, by dragging the menu items a little to the right (so it appears indented in the list), under the one you want it nested with. I won’t do that here though.
OK, so here is my menu:
.. and my website, after saving the menu:
.. but they are all still do follow.
STEP 4 – assigning the nofollow attribute to the links.
At the top right of your Dashboard, there is a screen options button.
Click it to open up a “secret” panel.
If you know what you are doing, you can check any or all of these boxes, but the ones I recommend you check are Link Target (do you want to open link in a new windows, parent window etc), and the Link Relationship (XFN) which is used to define the nofollow we want. Once you have those checked, you can click the Screen Options button again to close the panel.
Now, you may have noticed that next to each menu item is a little arrow that if you click opens another little panel. Here is the one for my Terms of Use Page:
To make this link nofollow, I simply type nofollow into the Link Relationship box:
I’ll repeat this for Privacy and Disclaimer pages, and save my menu.
Now if I refresh my site, here is what I have:
The three links are now nofollow while the home link remains do follow.
Print This Post
More Wordpress Tutorials
Top 10 WordPress PluginsThe 10 plugins listed here are not the only ones that I use. They are, however, the plugins that are installed on nearly every new Worpdress site I setup, so they are the most important ones for me. 1. Akismet – this is the free spam killing plugin that comes pre-installed. It’s an absolute essential [...]
Best WordPress Ratings & Review Plugin?Wordpress is a fantastic platform for review sites and with a ratings and review plugin, your visitors can actually add value to your site by providing real ratings and reviews of products. I tested out 4 Wordpress Ratings & Review plugins and found a clear winner.
Creating Custom sidebars in WordPressHave you ever wanted to have certain ads only show if the sidebar of certain pages? Wordpress uses a template system that means every page uses the same sidebar, but we can add code to the sidebar to test if a page is in a certain category and then insert code if it is.
Top 12 WordPress Plugins For WordPress 2.7.xHere is my top 12 Wordpress plugins for Wordpress 2.7.x
Artisteer ReviewArtisteer is an excellent template creator for Wordpress, Joomla, Drupal and HTML. Artisteer allows you to create Wordpress templates rapidly, with point and click ease.
Live Writer 500 Internal Server Error – xmlrpc.phpIf you get a 500 Internal server error caused by the Wordpress file xmlrpc.php when you try to open posts from your site, you may have an issue with your server trying to use an earlier version of PHP. This video shows you how to fix the issue.
Using SSI with WordPressUsing SSI on Wordpress sites is not difficult with the right plugin installed. He is how to do it, and the reasons why you should be using SSI on your sites.
WordPress Tags – Uses and AbusesWordpress tags are often abused and the consequences can be bad. Learn to use Wordpress Tags effectively.
Using WordPress for Affiliate SitesWordpress is a fantastic tool for creating affiliate sites, but how do you set it all up? We look at a couple of models you could use.
WordPress Tutorial – Adding Similar PostsIts a great idea to add similar posts to your Wordpress sites, as it encourages site stickiness, as well as giving pages on your site an SEO boost. Not only is the page then linking to other related content on your site, but the pages it links to now have inbound links from relevant content.
Removing the Gravatar Link from Revolution Template ThemesThe Gravatar link has been shown to be a common way my sites are losing visitors. In this tutorial, I’ll show you how to remove that link.
Changing Header Font SizeCascading style sheets are used in Wordpress themes to format your content, and layout. It can be quite a task for beginners to sift through the styles.css file, but I’ll show you how easy it really is by changing the H1 header font size in this tutorial.
WordPress Template HierarchyWordpress template system is confusing for those new to Wordpress. There is a simple hierarchy of templates that explains why some templates have certain files, while others do not.
WordPress posts & pages – what are the differences?Wordpress gives you the option of using a post or a page for your content. There is often a lot of confusion anongst Wordpress users as to which one they should use and why.
WordPress 2.7 PreviewSince I am using WordPress almost exclusively for building my own affiliate sites, I decided to join the WordPress 2.7. beta testers so I could give you a quick overview of what is coming. What I cover here is only a small part of WordPress 2.7., and represents what I found interesting in the hour [...]
Solving WordPress ProblemsWordPress is a stable product, and in most of the cases that I have come across, problems are usually nothing to do with the core files that WordPress distribute. The usual culprit is one or more plugins. Plugins are small pieces of code that add new features to WordPress, and these can be written by [...]
Automatic backups of your WordPress databases?WordPress is a fantastic tool for creating any type of website. However, servers can crash, MySQL databases can get corrupted and gremlins can get into the works! With traditional websites built in HTML, you have always had the option of keeping a backup of your site on your hard disk. With WordPress it’s not so [...]
Adding a Feedburner Subscription Box to your WordPress SiteFeedburner is a great free service (now owned by Google). It allows people to subscribe to your feeds, and will even email your subscribers for you whenever you post new material to your blog. It doesn’t matter whether you post 1 or 100 new articles to your site in any given day – Feedburner will [...]
Adding Video to your WordPress Blog postsThere are a few plugins that can help with adding video to your blog posts, and I’ll show you one of these in a future tutorial, because for most popular video sites, adding video is as simple as grabbing the embed code and pasting it into your WordPress post. Let’s look at an example: If [...]
Using Widgets In WordPressWidgets allow WordPress users to easily add in new features to the sidebars of their templates without having to hack template code. e.g. you can add a translator widget that will translate your page into multiple languages, or you could add a Feedburner subscription box. Adding both of these (and the hundreds of other widgets [...]
Manual Upgrade of WordPressIt has happened a few times to me. The automatic upgrade plugin for WordPress hasn’t worked. The last time this happened was with WordPress release 2.6.1. and it happened on all of my blogs. Is it a hosting issue, or a plugin issue? I am not sure, but what I am sure about is that [...]
Why use Tags in WordPressWordPress Tags? What are they and why should you be using them? Since WordPress 2.3, tags have become an integral part of blogging with WordPress. Have a look at sidebar on this page. Do you see that large box full of words? That’s a tag cloud. Each of the words in this box are words [...]
Things you need to know about PermalinksPermalinks are a great way to optimize your blog post URLs. If you read my article on WordPress Permalinks, you may be using the same permalink structure that I use, namely this one: /%category%/%postname%/ With this type of permalink structure, your post URLs will look like this: http://affiliate-minder.com/wordpresstutorials/install-wordpress-theme/ This is an actual URL from this [...]
Installing a WordPress ThemeIf you followed the tutorial for installing WordPress plugins, you will already have the skills needed. When you download a theme, you’ll find that it unzips into its own folder. The following template I downloaded and unzipped is called Andreas01. You’ll see that the theme includes two folders, wp-andreas01 which contains template files, and the [...]
Choosing a WordPress ThemeChanging your WordPress theme is very easy, so you can have some fun downloading and changing the look and feel of your site. There are a few things you should look out for when choosing a theme. Ideally you should have some posts already on your blog, as well as a static page, some comments [...]
Protecting WordPress From HackersWP Secure is a script that can restrict access to your WP-Admin folder based on IP address. That means no-one can login from any IP address other than your own. Here is how to set it up, and how it works: Online Videos by Veoh.com You can buy WP Secure here. Bookmark on DeliciousDigg this [...]
WordPress Permalink StructureSince we want to create a well-structured web-site, we need to set WordPress up so that it creates SEO friendly URLs for your posts. To do this, we need to edit the Permalink options. Literally speaking, a permalink is link that doesn’t change. e.g. when you write an article for your website, it is given [...]
Essential pages for any WordPress siteThe title is slightly misleading. These “essential” pages are not just for WordPress sites, but for ALL web sites. The pages are: 1. Terms of Use 2. Privacy 3. Disclaimer (I have seen Terms of Use and Disclaimer combined onto a single page). 4. Contact Us The first three pages listed here are legal documents [...]
Creating a homepage in WordPressIf you have installed WordPress and the plugins recommended in my Top 10 WordPress Plugins article, you ‘ll currently have a blog that looks like the generic WordPress blog, containing a hello world post, and an about page. Note: You can click images to enlarge them. We still have a fair bit of customizing to [...]
Activating Plugins in WordPressOK, hopefully you have uploaded the top 10 WordPress Plugins. The next step is to activate them so that your WordPress install is “using” them. Login to your WordPress Dashboard, and click on the link to the plugins page. When you get to that page, you should see your plugins listed. There are two things [...]
Top 10 WordPress PluginsNOTE: This article is quite old. On 10th May 2009 I posted a new article with an update of what plugins I use. The article is Top 12 WordPress Plugins Here is my top 10 WordPress Plugins. I do use others, but these are the first ones I install when I setup a new WordPress [...]
Installing Plugins in WordPressThis video shows how to install a plugin into WordPress. The plugin installed in this video is a Google XML Sitemap generator, but the principle for installing any plugin is the same, so follow along with this one, and you should be able to install any plugin you want. Installing a WordPress Plugin Video: Any [...]
Installing WordPress Using FantasticoFor those with cPanel hosting, and Fantastico, I have created this video to show you how easy it is to get WordPress up and running on your domain. Note though, that I highly recommend you learn how to install WordPress manually using FTP because you will need to use FTP to install plugins. FTP is [...]
Advantages of using WordPress for affiliate sitesAdvantages of WordPress in no particular order: 1. Online access using your web browser means you can add content from any computer, anywhere in the world. 2. “WYSIWYG” editor. This stands for “What You See Is What You Get”. In other words, you can create your content in the editor, and see how it is [...]
Installing WordPressInstalling WordPress is very easy. If your webhost has Fantastico installed, you can do it with a few clicks of the mouse. For some hosts, you will need to manually install WordPress, including creating a MySQL database, editing the WordPress config file, uploading everything, and installing. This is also very easy, in fact, it should [...]






