• Hello, I was wondering if anyone can give me some direction. I would like to add a rel=”nofollow” attribute to one of the navigation buttons on my front page. What folder would I be looking for? I have a little experience in hacking and messing around with WordPress however, I can’t seem to find the folder to change the navigation link. I just need to find the folder where the navigation is called from. I’ve looked through my theme files and can find the buttons but not the url’s to make rel=”nofollow”

Viewing 1 replies (of 1 total)
  • It’s difficult to answer your question without seeing how your menu code is generated; it could be hard-coded, or use wp_list_pages(), or wp_list_categories(), and the solution is different in each case.

    Assuming that your menu is created using wp_list_pages(), which is most likely, you can use Page Lists Plus for this. Install and activate, then on the Settings > Page Lists Plus page check the “Nofollow” checkbox and save, then go to the edit screen for the Page that you want to nofollow and check the “Nofollow” checkbox and save.

    Alternatively you can do this through your theme files by capturing the output of wp_list_pages() in a variable, doing a str_replace() to add the nofollow, and then echoing the result. If you’d like to do it that way then post back and we’ll go through it.

    – Tim

Viewing 1 replies (of 1 total)
  • The topic ‘Adding a nofollow attribute to navigation button?’ is closed to new replies.