How to add nofollow to wp_nav_menu

I need to add an option in my theme options panel to set a specific custom menu’s links all to nofollow.

Does wp_nav_menu() allow this or does it require a custom walker to manually ad rel=”nofollow”?

2 Answers
2

Advanced Menu Properties

As you can see above, the Advanced Menu Properties are hidden under the Screen Options pull down tab located in the upper-right corner of WordPress Dashboard.

NOTE: Make sure that you are in the Menus screen: http://yoursite.com/wp-admin/nav-menus.php

W.r.t your question, the Link Relationship (XFN) option is what you want “check”. Then the appropriate field will show up for each menu item allowing you to define its relationship (rel="____"). You can also leave it blank for some items (meaning, no relationship will be specified).

Leave a Comment