By slayerment on
I am looking to add the nofollow attribute to my menu items but this doesn't seem possible right now. Is there some type of module that handles this?
Thanks
I am looking to add the nofollow attribute to my menu items but this doesn't seem possible right now. Is there some type of module that handles this?
Thanks
Comments
Use theme_menu_item
What you want to do is:
Put the following function at the end of your template.php file (before the closing ?> tag if you have one):
assuming you are using the phptemplate system for your site. Hope this works, I haven't tested it.
Dave
doesnt work for me
is there another solution ?
Worked - but not for primary menu
Hi this worked great for the navigation menus, however it had no effect on the primary menu items. Is there an equivalent override function for the primary menu?
Thanks for the posting ;-)
Dave
Try phptemplate_links
Try phptemplate_links, but copy the code from the theme_links function, and adjust it accordingly.
Dave
My site: http://www.unitorganizer.com/myblog
Drupal 6
Somebody has made it for Drupal 6?
Take a look at the following
Take a look at the following module. http://drupal.org/project/menu_attributes
It ads several atributes to every menu item such as target="", rel="" and also id="" so you can easier style the items with CSS.
For D7
To specific paths:
To all menu items:
To all menu items from specific menu (
menu-footer):