
Link buying and exchanging is a good idea but may be not for the search engines. Got it? well lets take a simple example of blogroll in WordPress. Blogroll is a list of links that may be links of other bloggers, favorite website, link buying or exchanging. Be careful if your website caught by the search engine algorithm as illegal link exchanging scheme (although you may not doing this). So this may cause of dropping your own website page rank (PR). To save you page rank (PR) use “nofollow” to all external website links, here is an example how to use “nofollow”
Link with nofollow attribute: <a href=”#” rel=”nofollow”></a>
How we can add “nofollow” automatically to the Blogroll list of links, we need to modify some code manually in the WordPress source code file. Go to the wp-includes directory of your worpress find the file with the name bookmark-template.php and open it in your favorite editor.
Worpress 2.3.1 Go to the line no. 48
Wordpress 2.6 Goto the line no. 93
Wordpress 2.7.1 Goto the line no. 99
and find some code like this
$output .= ‘<a href=”‘ . $the_link . ‘”‘ . $rel . $title . $target. ‘>’;
and change it to
$output .= ‘<a href=”‘ . $the_link . ‘”‘ . $rel . $title . $target. ‘ rel=”nofollow”>’;
save the file and you are done, from now on all your Blogroll links will have rel=”nofollow” attribute and this will reduce the risks of dropping page rank penalized by search engines.



July 29th, 2008 at 6:23 am
Nice tip Rizzy Bravo.
thanks for sharing
July 29th, 2008 at 10:42 am
wow, useful info
although i haven’t experienced the code to my blog, but i will, for sure.
thnx 4 sharing
November 22nd, 2008 at 9:32 pm
thnx and grt info
May 27th, 2009 at 7:26 am
plz rizwan bhai tell me how can i change this on 2.7.1 wordpress while using seo excutive template thx !
May 27th, 2009 at 12:41 pm
Ali,
It doesn’t matter what WordPress template you are using b/c its not template modification.
In wp-includes folder of WordPress 2.7.1 open bookmark-template.php and Goto the line no. 99 and replace code as mentioned above in the post, Thanks.
May 27th, 2009 at 12:55 pm
It is great post. I requested the Author to share more and more tips on WordPress (theming,templating,exploring wp sections and other wordpress related posts). I am sure all the subscribers will wait for such posts as well.
May 29th, 2009 at 3:01 am
thx rizi bhai but there is no bookmark-template.php
in my theme files
i have main index template
and page template and there r nor codes smiller to th one u talking abu so confuse?
May 29th, 2009 at 1:28 pm
Dear Ali,
This file in not a theme file its WordPress source file in www/wp-includes/bookmark-template.php. where www is your website root folder.
June 3rd, 2009 at 1:16 pm
I want to know that whats the plugin name you are using on your website to share a topic on facebook etc, to print, email etc. etc. ???
June 3rd, 2009 at 2:00 pm
Sohaib,
Sociable is the name of the plugin that i am using for Bookmark/share purpose.
June 3rd, 2009 at 2:05 pm
Now this post is becoming more and more helpful (for me at least
)
July 15th, 2009 at 6:18 am
[...] Author : Rizwan Ashraf Tags: Attribute, Blogroll, Directory, Illegal Link, Link Exchange, Link Rel, Lt, Page Rank, Rel [...]
November 25th, 2009 at 8:54 pm
Hey, would you like to submit comments and backlinks to millions of blogs automatically? Blog Comment Poster will do it for you. Blog Comment Poster will increase your traffic, backlinks and earnings dramatically! Sounds cool? Yes, it is cool! It’s the best automated comments posting tool on the Internet with many advanced features. Check it out!
December 4th, 2009 at 10:24 pm
will any one guide me about SEO
March 30th, 2010 at 10:37 pm
sadky jao tery