How to - Show Blogger Widget Only in Post Pages

This is a awesome trick for bloggers. Using this blogger trick you can show your widget only on blog post pages, it wont be visible on homepage of blogger blog. You can use it now to show how your blogger blog is more user friendly to search engines. Using this blogger trick you can Build navigation links to your blogger blog.

The below steps will help you to show blogger widget only on post pages:

Step 1: Log in to blogger blog

Step 2: Open template and click Edit Template.

Step 3: Search for widget id that you want to show only only on post pages.

Step 4: Here assume your is HTML1 and replace the below code with the existing one.

<b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>

Step 5: Save your template and refresh your website.

Now you are able to view this widget only on post pages and it wont be visible on homepage of blogger blog. I hope the above technique is useful.

Thanks!!!

No comments:

Post a Comment