Today am going to share with you a little trick i learnt on how to place your adsense code just below your post title in blogger.
It was kinda difficult for me at first because the information i got about how to do it just was not working, i kept checking and searching until i came across the the right one which is what am going to share with you today for free.
First of all you need to understand that blogger was written in XML and not in HTML hence your HTML adsense code will not work if pasted into your blog template directly unless you first PARSE your code.
A very good adsense parsing tool can be found at: HERE.
Just Follow the Steps Below:
1. First of all you need to Login to your Google Adsense Account to generate code
2. Use Google Adsense Code parser HERE to make it work in Blogger.
3. Go into your blogger dashboard, go to your html templates and the click edit template, click the
"Expand Widgets Templates" Checkbox and then find the this line of code
<data:post.body/>
if you are using mozilla firefox, you can easily find it by using the ( Ctrl + F) Key and then typing the above code in the search bar
4. Paste
your parsed Adsense code above the "<data:post.body/>"
<b:if
cond='data:post.isFirstPost'>
<br/>
<<<<<YOUR PARSED ADSENSE CODE GOES HERE!!!>>>>>
<br/>
</b:if>
5.Save you template and you are done.
please note
that saving your adsense code this way with the conditional statement
will ensure that your adsense code only shows up on the very first page
of your post.
But if you want your adsense code to appear in every single one of your post then you must get rid of the IF statement.
<br/>
<<<<<YOUR PARSED ADSENSE CODE GOES HERE!!!>>>>>
<br/>
That would be all for todays post, hope i was able to pass the knowledge accoss to you.
Thanks for reading this far.
Cheers!!!
Hi Author,
ReplyDeleteI am use this tutorial for placing ads code in my blog post.
Thanks for sharing...
You are welcome Mahendra, i'm glad it helped
Delete