Bismillah, Alhamdulillah

Skip to Content

How to show blogger widget only in homepage

February 6th, 2012

Bismillah Alhamdulillah

I have received many comment ask about how to show my popular post only in home page. actually this trick is very easy many blogger already made tutorial about this. You can search from google. The method is usng if conditional from blogger.

if you want show all section you don’t have to ‘Expand Widget Template’
find this

<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>
</b:section>

Change to this

<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>
</b:section>
</b:if>


Demo

From demo click any posts and you can’t see Popular post widget anymore

Now I’ll show this tricks by using New Blogger Dashboard

Click Template from Dropdown of your Blog

Click edit HTML

Click Proceed

Search :

<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>
</b:section>

Replace with

<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>
</b:section>
</b:if>


Categories: Popular Post for Blogger, Widget

Tags: ,

Abu Farhan

I'm an Owner of this blog and it's always been a passion of mine to write about Blogger. I like to make original script for blogger. I also run the awesome Website at The Best Lists.

Enjoyed this Post?

Subscribe to our RSS Feed, Follow us on Twitter or Comments RSS Feed

Donate towards my web hosting bill!

Trackback
Leave a response

58 Responses to “How to show blogger widget only in homepage”

  1. Very Informative thanks

  2. smartcric says:

    Thanks for sharing this information.

  3. Haak News says:

    Thanks for sharing this information. I also need blogger widget only on homepage.

  4. News 91 says:

    It’s a huge collection of blogger widgets on your websites.

  5. Kaleem Khan says:

    Shukran (Thanks) Jazakum Allahu Kharian

Leave a Reply


three + = four

Dbestlists Dbestlists

Copyright 2009 - 2010  Choen