Display Gadgets Added To Your Blogger Template On Only Full Post Pages

Posted : Saturday, May 21, 2011 | Post Author : Paul Crowe | 15 comments

A comment on a recent post asked ‘Please write a post showing how to have a subscribe section below posts but not on the read more page’.By read more page the commenter meant the home page and unfortunately although it was a genuine comment they included a link to their email in the comment so i couldn’t publish it (Are you seeking out spam bots :D).OK so basically this person had added the code for a subscribe section to the template and it displayed below all the posts on the home page even though the posts were just a short summery.What they wanted was for it only to be below the full posts and doing this is quiet simple.

Back in February 2010 i showed you how you can make gadgets only appear on the home page or post pages.This was for gadgets you added to your sidebar or other gadget sections.The very same technique is used here and it will work with anything you add to your template, we just do it in a different way.So if you only want the subscribe section, related posts or AdSense on the post pages this will do the trick.

Gadgets On Full Post Pages Only

When you add the html for a gadget to your blog we add a snippet of code above it and a closing tag below it.Remember for some gadgets you add Css, Script and Html this tag is only used on the html.A good rule of thumb for this is as follows.

Css will be the code you added above: ]]></b:skin>

Script will be the code you added above: </head>

So by elimination we know the code you add elsewhere in general will be the html, make sense ?

The Code Needed To Display On Only Post Pages

The tag we add to the html so it only appears on post pages is this :

<b:if cond=’data:blog.pageType == “item”‘>



So for the commenter who wanted his subscribe section on the full post pages only he would add the html for the subscribe section between the above code when adding it to his template.

Gadgets On Home Page Only

What about doing the opposite and having something on the home page only ?

No problem this time we add this tag to the html :

<b:if cond=’data:blog.url == data:blog.homepageUrl’>



This is about as easy as i can make this, it’s always awkward when you are required to add code to code and add that to your template, see i made it sound even harder !


How about some more ? You can use similar tags to define a number of other unique places gadgets will appear.

On Everything except post pages (home page, labels pages, archive pages)

<b:if cond=’data:blog.pageType == “index”‘>



On only one post or page :

<b:if cond=’data:blog.url == “URL-OF-POST-OR-PAGE-HERE”‘>



On only the static pages :

<b:if cond=’data:blog.pageType == “static_page”‘>



There is more but i think they would cover any needs you have.

In many posts i automatically add the post page only tags and then highlight them giving you the option to use them or not.In future i will make sure to add them to every tutorial and give you a heads up on what they do and how to remove them.

Drop your Comments and Questions Below.


  1. Urdu Movies TeamMay 21, 2011 at 9:04 PM

    thanks,,, I seem only first time a blog which is full of tricks to make blogs and sites much pretty …Thanks again


  2. what if i don’t want to show my whole sidebar and make the post width large only for selected articles?
    do i have to add some class and conditions within the post itself???


  3. thanks. it working


  4. Hello,

    I try to put adsense only in full post pages but it does not work.


  5. @David – Did you parase the AdSense code before adding it to your template ?


  6. Hello Paul, Yes it was parsed. More info:

    – I put adsense between post and comments.
    – My template is “new mashable”

    Thank you.


  7. Hiya!

    Can you tell me or post the code needed to have all the share options you have on this post? Meaning, the line of share buttons below “Drop your Comments and Questions Below.”

    It looks great and I’d really like to use it.

    Thanks 😀


  8. I’ve been looking for this post… Thanks, Crowe!


  9. Hi Mr Paul,

    Is this applicable to borders? Like you want to have borders every post in your home page, but remove them in your static page?


  10. I have to applaud you to the fullest. I have spent countless hours dealing with this and I read your post and boom the light bulb has come on. Thanks a lot for making everything so great.


  11. Peonies and PearlsMarch 9, 2012 at 9:48 PM


    Please help!

    I only want linkwithin to show on full post pages. My homepage has automatic jumps. I’ve used the static code but still showing?? My blog is www.peoniesandpearls.co.uk Thanks!!!


  12. Hello Paul,

    This is nice post.
    But how can I add a Box or border in my social buttons just like yours: (If You Enjoyed This Post Please Take 5 Seconds To Share It).

    How can I add Box and Text in it?
    Can you Help me that?
    Thank you so much.



  13. I’ve tried this method but adsense still appear on first page, not just in full post page.


  14. this is really great tricks for us


  15. woooow thank you sooo much i have solved a big problem for me i thank you alot…..