How To Restrict Comment Count, Labels To Post Pages In Blogger

There are couple of times that you may want to restrict different widgets, or any random code snippet to post pages in Blogger blogs. Notice how we show up labels, 'print this post' social sharing widgets only on post/article pages.

So in case you would like to apply that to your blog, there are few easy steps that would lead you towards the final product.
restrict lables

What Would You Achieve?

restrict labels

restrict labels

Before we start off, you may want to read one of the related articles i posted before:

 Step #1 Find Your Widget Code In Blogger Template HTML

For an example, i would show up the code for 'print this page' feature, and how we have restricted it to only post pages. You wont find any 'print this' option on homepage.

Go to Blogger Edit HTML and backup your template.

Find the following code:

<div class='post-header'> OR  <div class='post-header-line-1'>
Below is the picture of the 'print post' code snippet on this blog. You simply have to add the conditional tags around any of your code that you wish to restrict to post pages.

Step #2 Add The Following Conditional Tags

<b:if cond='data:blog.pageType == &quot;item&quot;'>
 Your Label code here

 Simply rap your desired widget code between the above highlighted code (conditional tags) statement.

Hope that was easy to graps. In case of any problem, leave out your comment



AdSense affiliate marketing Announcement AskHassam Blogger Blogging Tips Blogosphere News Bluehost Building Traffic BuySellAds Contest Customizations Disqus Tutorials Domain Hosting Drop Down Menus eBook Email Marketing Facebook Tutorials Feedburner Freelancing Giveaway Google Google Analytics Google Gmail Google Plus Tricks Guest Post HowTo Interview Making Money Online Monetization Motivation PayPal Pinterest Plugins review SEO Slideshare Social Media Top Lists Twitter Wordpress YouTube
BloggingeHow | Making Blogging Simpler: How To Restrict Comment Count, Labels To Post Pages In Blogger
How To Restrict Comment Count, Labels To Post Pages In Blogger
BloggingeHow | Making Blogging Simpler
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy