Breaking

LightBlog

Tuesday, 18 February 2014

Show Adsense Only On The Homepage of Blogger

Show Adsense Only On The Homepage of Blogger

Show Adsense Only On The Homepage of Blogger


How To Make Widget/Adsense Unit Appear On The Homepage Only

To do this, you need to first know your widget ID by following the steps below:

1. Log in to blogger

2. Go to Blogger Layout and locate the widget you wish to appear at the homepage only

3. Click on the ‘Edit’ widget and copy link location



4. Paste the link to a notepad and locate the widget ID.

5. Copy out the widget ID (highlighted in the example above pointing red arrow)

6. Now go to Edit HTML and check the box labelled Expand Widget Template (I suggest you always back up your template before editing your template)

7. Press CTRL + F and find the widget ID you copied earlier.

8. In the line directly below that widget ID, you should see this piece of code:

<b:includable id='main'>


9. Immediately below this, paste the code below:


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

10. Now scroll down a bit (maybe 5-10 lines) till you find this code:

</b:includable>


11. Just above this, paste this code:

</b:if>


after inserting codes on correct place code will be look like this

Adsense Only On Homepage

No comments:

Post a Comment

Adbox