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

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

  1. free net says:

    ok i wiil try this

  2. Cricket says:

    This is really nice idea and trick and helpful for me to my issue Thanks ! nice sharing :)

  3. wallpaper says:

    Very nice tutorial and very help full to manage the widgets

  4. Rana says:

    Nice article;
    I want to know about how to show blogger widget only a specific page.
    and how to use one widget in homepage when other widget use in the others page at the same position.
    If you have no problem, then plzz make a post about it.

  5. avesan says:

    it helped me lot thanks..all your tutorials are good and helpful

  6. More a great Article, I like very much your site!!!

  7. pening banyaknya code, tak tahan mata nak tengok, infomasi yang menari untuk blog saya

  8. such nice information bro…
    thank you very much

  9. akira says:

    keren semua postingan nya
    membantu sekali
    makasih ya

  10. Techopera says:

    Thanks for this information Farhan, i really do appreciate it

  11. bloogtrik says:

    How to do that now sir!! The template blogger was change

  12. bloogtrik says:

    How about now? the tempallate blogger was change

  13. Malik says:

    You have written awesome post here I am a big fan of yours. Thanks for the tutorial

  14. OnePromoShop says:

    info menarik dan bermanfaat, terimakasih..

    salam,

  15. fun pic says:

    It worked great! Except for one small issue.

    I’m using the new Awesome Blogger template, and I only want the text gadget to show above my blog posts on the home page (which you solved).

    I put the code as you stated into the HTML, however there is still a small, very thin ‘box’ where the gadget used to be on other pages.

    Yes, the full gadget only shows on the home page, but now there is that thin white box remaining on every page.

  16. Aggregator says:

    yeah!! thank you man,

  17. My opinion is that like you, it’s very funny, but I don’t know how it could be judged by him.

  18. Saifudin says:

    artikel yang bermanfaat..akhirnya bisa saya terapakan di blog saya … terimakasih :)

  19. Abed Saragih says:

    Itu memang gak apa Mas yang don’t clik pada centang expand template widgetnya.

    Biasanya dicentang Mas.Ok lah Mas tutorialnya.

  20. his Blogger tip may have been going around the Internet for quite some time now but I since still see some people asking for help about the subject I thought I’d help spread the word. So today’s featured tutorial comes from a post made by Abu Farhan wherein he shthe news: every time there is something new happening in the markets around the world, be the first one to present it to your readers. news spreads like fire and once your readers hear about it from other sources, they will…

  21. ary widodo says:

    Terimakasih atas berbagi informasinya mas.

  22. Dzulmar EGG says:

    (indonesian)
    Boleh saya tahu, bagaimana caranya membuat kotak komentar seperti ini?

  23. Lillia says:

    great article and all but I’m trying to find out how to hide the slider in my ‘bloggertube’ theme on other pages and I JUST can’t figure it out! Can someone help me out on this?

  24. adakah meta tag yang setiap kita posting maka indeks di google secara otomatis akan berformat:

    Judul Artikel – Home Page
    Judul Artikel – paragraf pertama dalam artikel tersebut

  25. wow cool man nice trick i like it thanks

  26. bengeek.com says:

    salam
    baraka laho fik akhi Abu farhan..
    a Greate post..!

  27. 私はあなたがこの記事を書くと、私も将来的にはあなたと同じ最高の仕事を望んでいで行った努力に感謝したいと思います。

  28. perez says:

    postingan ente keren keren banget gan tentang html

  29. Ambar says:

    very nice Blogger widgets and pluginsi was searching for such post. your post is in detail.
    Thank you for sharing with us

  30. shruthi says:

    hi nice post and i want to disply some side widgets only in post pages not in home page.and if posted a article about blogger tricks after that it will disply related posts about that label only.pls reply me

  31. Soki Briggs says:

    Does this have any effect on SEO?
    I’m having some trouble with my topics not showing in Google.. it only shows home page

  32. Valdir says:

    thank u master…

  33. akhyar says:

    why i couldn’t find the script?

  34. Mark says:

    I love your blog. Great work! Check my collection of God Inspired Lyrics

  35. candra says:

    thank u master…

  36. Installation says:

    a long term relationship.be first to break…

    the news: every time there is something new happening in the markets around the world, be the first one to present it to your readers. news spreads like fire and once your readers hear about it from other sources, they will…

  37. kishore says:

    thanks

  38. souno says:

    Very nice tutorial and very help full to manage the widgets

  39. Live Cricket says:

    Abu I want to tell u something mate….UR THE BEST!! Thanks a lot. Because of people like you blogger feels like wordpress. Thanks champ!

  40. [...] This Blogger tip may have been going around the Internet for quite some time now but I since still see some people asking for help about the subject I thought I’d help spread the word. So today’s featured tutorial comes from a post made by Abu Farhan wherein he shows you how you can make your widget appear only on your homepage. You can read about it HERE. [...]

  41. Endlesslove says:

    I have done. Thanks for sharing.

  42. Janmejaya says:

    I like this tips.
    Now i interested to using in my blog.

  43. Thank you for this trick, this is awesome…and applied it to my site

  44. #1 fan says:

    sorry for triple posts, I couldn’t put the code in the comment? I do not why…

    b:if cond=’data:blog.url !== data:blog.homepageUrl’

  45. Abu Farhan says:

    use

    b:if cond=’data:blog.url != data:blog.homepageUrl

Leave a Reply


− five = three

Dbestlists Dbestlists

Copyright 2009 - 2010  Choen