Spread the word

Monday, July 14, 2008

How to add noindex, nofollow in Blogroll for your Blogger/Blogspot Blogs

If you want to add a Blogroll in your Blogger Blog you can add it from your layout tab in your Blog's dashboard. You can add new page element and select the Blogroll element, where you specify the links you want to display on your Blog. You can choose the title of the section. Now if you want that Google don't share your Google Juice(PageRank value) to those sites, you can specify Google not to do that. For this you have to specify all those links to be non-recommended by adding a rel="nofollow" tag to those anchor tags.

Here is how you can do it by editing the html template of your Blog. Open the 'Edit HTML' tab in your Blogger Layout. Check the check box to Expand the widget templates. If your title for your Blogroll section is Blogroll, then find out for the following section in your template.

<b:widget id='LinkList1' locked='false' title='Blogroll' type='LinkList'>
<b:includable id='main'>
<b:if cond='data:title'><h2><data:title/></h2></b:if>
 <div class='widget-content'>
   <ul>
     <b:loop values='data:links' var='link'>
       <li><a expr:href='data:link.target'><data:link.name/></a></li>
     </b:loop>
   </ul>
   <b:include name='quickedit'/>
 </div>
</b:includable>
</b:widget>


This section of the code provides the Blogroll facility in your Blogger Blog. ow you can modify this widget to add the nofollow tag. Just insert the nofollow tag as follows.
<b:widget id='LinkList1' locked='false' title='Blogroll' type='LinkList'>
<b:includable id='main'>
<b:if cond='data:title'><h2><data:title/></h2></b:if>
 <div class='widget-content'>
   <ul>
     <b:loop values='data:links' var='link'>
       <li><a expr:href='data:link.target' rel='noindex, nofollow'><data:link.name/></a></li>
     </b:loop>
   </ul>
   <b:include name='quickedit'/>
 </div>
</b:includable>
</b:widget>

This will solve your problem and satisfy your task. You can add only the nofollow tag. I have shown you the example if you want that Google even don't index those urls, then you can add noindex tag also. Now add as many links as you wish for your visitors but not for the search engines. Enjoy Blogging.

3 comments:

Anonymous said...

Hey, very helpful tip. Worked fine and easy to implement. I had this thought and has been searching for this for a long time.
Thanks for sharing this. It helped.

L said...

thank you!

I found this trick in another blog before, but the code instructions from there were wrong, but you solved my problem :)

ABgraphic said...

finally i found this idea many time i search no found thank you so much for this my problem soloed.

Post a Comment