Minggu, 20 Januari 2013

How To Show Blogger Widget Only In Homepage

In this Tutorial i will show you, how to show blogger (Popular Posts ) widget only in homepage. The reason for this is that, I have received many comments asking about how to show popular posts only in homepage. I also posted other tutorial about How to create Multi Column Footer Widget and How to add a Drop Down Menu to blogger. This is actually not easy to do for new comers but is still easy for old ones. Not only this you can also read other related articles/posts. Make your blog pretty simple and different from others so lets start our work and perform some easy steps:

1: Go To Blogger > Template > Edit HTML


2: Find (Ctrl+F) this code given below:


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

3: Replace with 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>

4: Now click on save template. You're done!


Tidak ada komentar:

Posting Komentar