Hide ad from home page and show your advertisement (any content) on other pages

Sep 27th, 2008
I have to hide ad coming on the home page but wanted to show that on other page. As my home page has a list of three posts/items there will no adsense ad on the left side because already three ads will there below each posts. So, what I did is – I went to Blogger/blogspot CMS -> Layout ->Edit HTML and then selected the checkbox for "Expand Widget Templates".
There I searched for my title for the widget. Here in this case my title was empty. It was JavaScript code for ad so no title is used there.
My widget for this in expanded view looks like:
<b:widget id='HTML5' locked='false' title='' type='HTML'>
<b:includable id='main'>
  <!-- only display title if it's non-empty -->
  <b:if cond='data:title != ""'>
    <h2 class='title'><data:title/></h2>
  </b:if>
  <b:if cond='data:blog.url!=data:blog.homepageUrl'>
  <div class='widget-content'>
    <data:content/>
  </div>
  </b:if>
  <b:include name='quickedit'/>
</b:includable>
</b:widget>
Hope this will help in earning more revenue to good blogger.

 
Possibly Related posts:
Comments are open for an year period. Please, write here on Facebook page.

Mobify empowers marketers and developers to create amazing mobile web experiences. Tap to learn more

Mobify