Tuesday, January 2, 2018
How To Make Blogger PageList Widget Nofollow
How To Make Blogger PageList Widget Nofollow
This tutorial explains how to become links of your pagelist widget nofollow.
1. Login to your Blogger account and go to "Template"--> "Edit HTML" of your blog.
2. Now find your PageList widget code. (Note : You may also can find it by searching <b:widget id=PageList)
PageList widget code will look like this. But widget id (PageList1) can be different :
<b:widget id=PageList1 locked=false title=Pages type=PageList>
<b:includable id=main>
<b:if cond=data:title><h2><data:title/></h2></b:if>
<div class=widget-content>
<b:if cond=data:mobile>
<select expr_id=data:widget.instanceId + "_select">
<b:loop values=data:links var=link>
<b:if cond=data:link.isCurrentPage>
<option expr_value=data:link.href selected=selected><data:link.title/></option>
<b:else/>
<option expr_value=data:link.href><data:link.title/></option>
</b:if>
</b:loop>
</select>
<span class=pagelist-arrow>&#9660;</span>
<b:else/>
<ul>
<b:loop values=data:links var=link>
<b:if cond=data:link.isCurrentPage>
<li class=selected><a expr_href=data:link.href><data:link.title/></a></li>
<b:else/>
<li><a expr_href=data:link.href><data:link.title/></a></li>
</b:if>
</b:loop>
</ul>
</b:if>
<b:include name=quickedit/>
</div>
</b:includable>
</b:widget>
3. Now put blue colored code ( rel=nofollow ) as the example below into your Link list code.
<b:widget id=PageList1 locked=false title=Pages type=PageList>
<b:includable id=main>
<b:if cond=data:title><h2><data:title/></h2></b:if>
<div class=widget-content>
<b:if cond=data:mobile>
<select expr_id=data:widget.instanceId + "_select">
<b:loop values=data:links var=link>
<b:if cond=data:link.isCurrentPage>
<option expr_value=data:link.href selected=selected><data:link.title/></option>
<b:else/>
<option expr_value=data:link.href><data:link.title/></option>
</b:if>
</b:loop>
</select>
<span class=pagelist-arrow>&#9660;</span>
<b:else/>
<ul>
<b:loop values=data:links var=link>
<b:if cond=data:link.isCurrentPage>
<li class=selected><a expr_href=data:link.href rel=nofollow><data:link.title/></a></li>
<b:else/>
<li><a expr_href=data:link.href rel=nofollow><data:link.title/></a></li>
</b:if>
</b:loop>
</ul>
</b:if>
<b:include name=quickedit/>
</div>
</b:includable>
</b:widget>
Important : You must include the space before rel=nofollow as the example above.
Now save your template and you are done.
SHARE this post if it helps... THANKS.