Results 1 to 10 of 10

Thread: How to nofollow tag cloud?

  1. #1
    mixke is offline Net Builder
    Join Date
    Dec 2008
    Posts
    147
    Thanks
    22
    Thanked 22 Times in 14 Posts

    How to nofollow tag cloud?

    I'm displaying tag cloud on the homepage and I want to nofollow tags being displayed in the tag cloud. How do I go about it?

    I guess this would require editing core file as I'm unable to find a plugin for this purpose.
    Need some time to handle deferred joining date by three big IT companies.

    If your work is still pending, I'll soon get in touch.

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    I would:

    • Load the blog in my web browser
    • View the source to find the code section where the tag cloud was implemented
    • grep the Wordpress directories for strings from that code section
    • Look for the "<a href" in the tag cloud code section
    • Add in "rel=follow" to the appropriate part of the code
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,853
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    I've searched in the mod on those things, and couldn't find it This is really strange.. but since it's flash-based I think you need flash to edit that? As in the code I was unable to find links starting with <a href (except 3, but those linked to the website from the owner)

    Greetz
    |Nico Lawsons

  4. #4
    mixke is offline Net Builder
    Join Date
    Dec 2008
    Posts
    147
    Thanks
    22
    Thanked 22 Times in 14 Posts
    Quote Originally Posted by Will.Spencer View Post
    I would:

    • Load the blog in my web browser
    • View the source to find the code section where the tag cloud was implemented
    • grep the Wordpress directories for strings from that code section
    • Look for the "<a href" in the tag cloud code section
    • Add in "rel=follow" to the appropriate part of the code
    Yep! I've been doing it throughout the day. And finally I have the solution

    The thing which costed me so much time and efforts is that it was not easy for me to locate the function where tag cloud is implemented (there are so many files in Wordpress). But now I've some understanding of how tags work in WP. WP uses two functions for tags - one to display it and other to generate it.

    If anyone wants to no-follow tags in the tag cloud, here's the solution to the best of my knowledge -

    • Find category-template.php under wp-includes folder and open it.
    • Find function wp_generate_tag_cloud. In the function, you would find $a[] = "<a href='$tag_link' class='tag-link-$tag_id' etc etc...
    • Add rel='nofollow' between <a and href
    • Done!


    This worked for me.

    Quote Originally Posted by Aquarezz View Post
    I've searched in the mod on those things, and couldn't find it This is really strange.. but since it's flash-based I think you need flash to edit that? As in the code I was unable to find links starting with <a href (except 3, but those linked to the website from the owner)

    Greetz
    I'm not using the flash-based tag cloud plugin - the one which rotates tags. I'm using the one that comes with Wordpress by default.
    Need some time to handle deferred joining date by three big IT companies.

    If your work is still pending, I'll soon get in touch.

  5. #5
    begood is offline Unknown Net Builder
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mixke View Post
    I'm displaying tag cloud on the homepage and I want to nofollow tags being displayed in the tag cloud. How do I go about it?

    I guess this would require editing core file as I'm unable to find a plugin for this purpose.
    Why would you have nofollow tag instead of dofollow?

  6. #6
    dcristo is offline Newbie Net Builder
    Join Date
    Jun 2009
    Location
    Australia
    Posts
    124
    Thanks
    1
    Thanked 17 Times in 16 Posts
    Thanks for the hack I will test this out.

    Quote Originally Posted by menj View Post
    I believe the "All In One SEO" plugin has a feature that can give "nofollow" tags to the tags cloud.
    No it doesn't. It only adds noindex to tag archives.

    Quote Originally Posted by begood View Post
    Why would you have nofollow tag instead of dofollow?
    Because you don't want to pass pagerank to tag pages.

  7. #7
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by dcristo View Post
    Because you don't want to pass pagerank to tag pages.
    Ah... but since we now know that nofollow doesn't preserve PageRank, but instead wastes it, there's no motivation not to pass PageRank to tag pages.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  8. #8
    dcristo is offline Newbie Net Builder
    Join Date
    Jun 2009
    Location
    Australia
    Posts
    124
    Thanks
    1
    Thanked 17 Times in 16 Posts
    Quote Originally Posted by Will.Spencer View Post
    Ah... but since we now know that nofollow doesn't preserve PageRank, but instead wastes it, there's no motivation not to pass PageRank to tag pages.
    I'm not sure that it wastes it? From the latest discussion from G it no longer passes the additional pagerank to other links on the page. Either way, I'd prefer not to have the tag pages get indexed. I've used meta noindex and nofollow as an extra measure to make sure the spiders keep away.

  9. #9
    Penguin Kribo is offline Unknown Net Builder
    Join Date
    Jun 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by menj View Post
    I believe the "All In One SEO" plugin has a feature that can give "nofollow" tags to the tags cloud.
    This is the best one and the simplest one, All in One SEO Plugin will do for nofollow-ing the tag and archives and category, you can choose it by yourself.

  10. #10
    dcristo is offline Newbie Net Builder
    Join Date
    Jun 2009
    Location
    Australia
    Posts
    124
    Thanks
    1
    Thanked 17 Times in 16 Posts
    Quote Originally Posted by Penguin Kribo View Post
    This is the best one and the simplest one, All in One SEO Plugin will do for nofollow-ing the tag and archives and category, you can choose it by yourself.
    You have the option to add meta noindex to archive, tag, category pages etc NOT nofollow.

Similar Threads

  1. Cloud Computing?
    By The Hat Tipper in forum General Chat
    Replies: 7
    Last Post: 26 March, 2010, 23:44 PM
  2. NoFollow Links Really are NoFollow
    By Will.Spencer in forum Promoting
    Replies: 8
    Last Post: 15 January, 2010, 09:06 AM
  3. VPS Cloud Hosting: VPS.net
    By Habaku in forum Web Proxies
    Replies: 2
    Last Post: 24 November, 2009, 18:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •