Show widgets only in posts

Show widgets only in posts

Most of you guys must have noticed that by default blogger shows all widget in all page as well as at homepage. And in this tutorial we will learning how to show widgets only in posts.

1.Go to template> Edit html
2.Press CTRL+F and the widget That you want to show only in posts for example HTML1
3.After searching you will find a code similar to the below code
 <b:widget id='HTML1' locked='false' title='Author' type='HTML'><b:includable id='main'><!-- 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:includable></b:widget> 
4.After finding it just replace with the below code
 <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>
That's its

Also see http://www.bloggerunlocker.tk/2015/06/gomato-3-blogger-template.html 
Previous
Next Post »