Friday, July 13, 2007

Blogger - How to put Google Adsense after a post

This seems like a fairly simple task for anyone with a slight bit of html knowledge, however when the adsense code is placed after the post tag, it dosent show up. This is due to part of the adsense code. What you need to do is the following:
1 Get your adsense code
2 Now you will need to locate the following code

<div class='post-body'>
<p><data:post.body></data:post.body></p>
</div>

in Template > Edit HTML (remember to click on 'expand widget templates').

3. Now paste your google code after the end
4. You will need to remove the following google code in blue

<script type="text/javascript"><!--
your adsense code
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

And thats how you do it.

No comments:

Friday, July 13, 2007

Blogger - How to put Google Adsense after a post

This seems like a fairly simple task for anyone with a slight bit of html knowledge, however when the adsense code is placed after the post tag, it dosent show up. This is due to part of the adsense code. What you need to do is the following:
1 Get your adsense code
2 Now you will need to locate the following code

<div class='post-body'>
<p><data:post.body></data:post.body></p>
</div>

in Template > Edit HTML (remember to click on 'expand widget templates').

3. Now paste your google code after the end
4. You will need to remove the following google code in blue

<script type="text/javascript"><!--
your adsense code
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

And thats how you do it.

No comments: