Pages

Tuesday, April 17, 2012

Show The Sharing Buttons On Post Pages Only

If you want to show the sharing buttons on post pages only, add this code below:

<b:if cond='data:blog.pageType == &quot;item&quot;'></b:if>

Before:
<div class='post-share-buttons'>
  <b:include data='post' name='shareButtons'/>
</div>

After:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div class='post-share-buttons'>
  <b:include data='post' name='shareButtons'/>
</div>
</b:if>

No comments:

Post a Comment

Archives