Show/Restrict Blogger Widget On Post/Home/Specific URL Pages Only

There might be couple of you guys who wish to show a particular widget only on certain page in blogger. This feature is quite helpful in customizing your post or static pages differently. You might want to show subscribe widgets on main pages but not on a certain page.

So for that purpose, i have listed couple of short codes that after applying them, you could get this done easily.

Below are the different combinations that you can make out with these 'if' statements. There are two pieces of codes (lines) highlighted in red. Find the desired widget code in your blogger template (Design >> Edit HTML).

The best way to find your desired widget, is to give it a unique name for time being (testing purpose) and find that name in the Edit HTML section. Say one of my template may be called 'Mytestwidget'. So thats what ill be finding in Edit HTML section (Ctrl +F).

So now if you wish to apply the following codes to the followers widget, then simply find 'followers' in HTML code.

Showing A Certain Blogger Widget Only On Post Pages


<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>

Showing A Certain Blogger Widget Only On Homepage/ Index Page


<b:includable id='main'>
<b:if cond='data:blog.pageType == &quot;index&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>

Showing A Certain Blogger Widget Only On 'Static Pages'


<b:includable id='main'>
<b:if cond='data:blog.pageType == &quot;Static_Page&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>

Showing A Certain Blogger Widget Only On Certain Post URL


<b:includable id='main'>
<b:if cond='data:blog.pageType == &quot;Blog Post URL HERE&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>
  Thats all! Below are couple of great widgets for you too.

You may like to read:

COMMENTS

BLOGGER: 2
Loading...
.
Name

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
false
ltr
item
BloggingeHow | Making Blogging Simpler: Show/Restrict Blogger Widget On Post/Home/Specific URL Pages Only
Show/Restrict Blogger Widget On Post/Home/Specific URL Pages Only
http://4.bp.blogspot.com/-wde-g0WL_X8/T1YrRbEmqMI/AAAAAAAACxM/ttFzpqyEhKA/s320/Blogger+Widgets.jpg
http://4.bp.blogspot.com/-wde-g0WL_X8/T1YrRbEmqMI/AAAAAAAACxM/ttFzpqyEhKA/s72-c/Blogger+Widgets.jpg
BloggingeHow | Making Blogging Simpler
http://www.bloggingehow.com/2012/03/showrestrict-blogger-widget-on.html
http://www.bloggingehow.com/
http://www.bloggingehow.com/
http://www.bloggingehow.com/2012/03/showrestrict-blogger-widget-on.html
true
5839591175544873606
UTF-8
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
Resources

Tools of the Trade