Showing Ads Only Inside of Post Pages

This item was filled under [ News ]

I do not if its been posted before but i wanted to share this blogger trick with you guys , as you know you cannot show more than 3 ads on a page and most of us love to add ads inside of posts since this placement generates much money to us ,but if you want to use this placement you have to show 3 posts on your main page to show 3 ads after every ads . Lets break this limitation in a legal way.


What i meant saying “post pages” ? page for single post , Like this
http://www.gosublogger.com/2008/06/blogger-ajax-template-angelic.html
When you click the link you will go to page of Angelic Theme.

  1. I guess ,we better add expandable posts hack to our template , a lot of people asked me how to do this trick , heres simple explanation ;

    —>Expand html , and find as “post.body” and add the codes below after that line.

    <b:if cond=’data:blog.pageType != &quot;item&quot;’>
    <div style=’float:right’>
    <a expr:href=’data:post.url’>Read More…</a>
    </div>
    </b:if>

    —>After this step add the codes below , before </head> tag

    <style>
    <b:if cond=’data:blog.pageType == &quot;item&quot;’>
    span.fullpost {display:inline;}
    <b:else/>
    span.fullpost {display:none;}
    </b:if>
    </style>

    —> Now , when typing something , type full post between <span class=”fullpost”> HERE</span> , and summarize before this code , do not forget , you will add span tags manually :)

  2. Now we will add codes for ad trick to our blogger xml template,

    —> Find post.body again and add the codes before of after that line , depending on your desire about the place you want to put ads , i added the ads to before posts , when you check it you will realize it.

    <b:if cond=’data:blog.pageType == &quot;item&quot;’>

    Ad Code Here

    </b:if>

    —>If you’re adding adsense , chitika or ads from other networks , be sure to convert codes for blogger from here.

I also use this trick , go to my main page , click Read More button ,and you will see and that you dont see on main page :) Hope you understand it , learning arabic made my english worse , sorry guys . Thanks for subscribing my feeds :) , do not hesisate to ask any question

Be Sociable, Share!
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Comments on “Showing Ads Only Inside of Post Pages”

  • World of Tech &amp; Fun!
    23 June, 2008, 4:39

    Hi Gosu!
    Very very useful and unique article and hack by you!I was dreaming about this hack.Thanks for making my dream true:)
    I applied ur hack in my blog,u can check it!
    Techodia dot Com

  • Orkut Scripts
    7 July, 2008, 8:22

    What does this mean now?
    Do you want to say that the ads will not show up on the homepage, but in post pages? just clarify plz. :)

  • Gosu
    7 July, 2008, 8:48

    yes.

Leave a Comment