How to Make a Widget Only Appear On The Blog Posts


Blogger Widget

How to Make a Widget Only Appear On The Blog Posts - My Backlink this time will share a tips-tricks that only serves to show the widget on the blog post page. Illustrations like this, at some point we feel should install a widget which we think is important and must be present on our blog, but on the other hand, the home-page page has been cluttered and if imposed, it would be more chaotic and confusing. Well here is the method to show a widget only on the pages of blog posts into a workable solution to overcome these problems.

How do I make it? Not too difficult, but it requires precision and patience, because we have to add a script to the html-template blog series we are so in length and complicated, one can slightly damaged all blogs arrangements that we have built with such difficulty.

In this article I pointed to put Widgets Related Articles only on post pages. The original script is as follows widgets.

<b:widget id='HTML1' locked='false' title='Related articles' 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>


To achieve such purposes we only need to add 2 additional course code or script that is <b:if cond='data:blog.pageType == &quot;item&quot;'> and </ b: if>, so that the configuration script into seperrti this:
<b:widget id='HTML1' locked='false' title='Related articles' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<!-- 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>


yX Media - Monetize your website traffic with us
yX Media - Monetize your website traffic with us