• Hi

    I want to know exactly how to add the nofollow tag to links on certain pages. for example in the footer I have my home page link, and when that links shows up in the home page theres no need to pass page rank to it, it would be more beneficial to only pass page rank to that link from other pages of the blog

    I actually tried to have a go at it but I failed, this is the best that I could come up with:

    <?php } ?>
    <?php if (is_front_page()) { ?>
    rel=”nofollow” www .mywebsite .com
    else if (is_page()) { ?>
    www .mywebsite .com
    else if (is_single()) { ?>
    www .mywebsite .com
    else if (is_category()) { ?>
    www .mywebsite .com
    <?php } ?>

    When I used that code it messed up the whole footer. Can anyone please tell me how to do it properly in step-by-step

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to add nofollow tag to links on certain pages’ is closed to new replies.