Display Ads only in Post Pages or Homepage – Blogger Tips

If† you want to display some of the selected ads or banners only to appear in Home page of your Blogspot Blog or only in Homepage then we have a simple trick for that. Enjoy this tip to target selected Banners† or ads for your targeted Posts.

Letís start:

1. Login in your Blogger Dashboard.
2. Then Click on Design.
3. Click on Edit HTML.
4. Click on Expand Widget Templates.

Now here you find for the widget you want to show only on homepage or post page only, may you have added any title for it† if yes then search for the title.

Just below that widget id link, You can see a b:includable tag like this..

<b:includable id='main'>

Then just below it add this code to Display it only on homepage :

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

To display it only on Post page add you can add this:

<b:if cond='data:blog.pageType == 'item'>

If you want to display it on any specific page oe post than add this :

<b:if cond='data:blog.url == 'http://www.(URL† of post)'>

Now before </b:includable> add this code: </b:if>

One Response

  1. Krystal 7 years ago

Add Comment