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.
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.
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.
I've searched in the mod on those things, and couldn't find itThis 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 - Quality Web Hosting at WiredStorm
|cPanel with Softaculous and 24/7 Email (Ticket) Support & Live Chat
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.
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.
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.
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.
Bookmarks