I know you’ve been searching for how to add AdSense ads in middle of your blog on blogger. I remember those days when my blog used to be on blogger/blogspot it wasn’t easy cos one had to always be working on template every now and then. I actually enjoyed using blogger but after a while, I felt it was high time I moved on and that’s what brought about my migration to WordPress.
Even though I’m currently on WordPress, I’ve still got vast knowledge of blogger and I’d be helping fellows who are still on blogger with some tutorials to guide and make blogging easy for them.
Yeah I’d be showing you guys how to add AdSense codes in middle of post on Blogger. It’s not really as difficult as you guys think, when I did it on my blogger blog, I was just like “wow, so this stuff is even easy”. The thing is if you’re on WordPress, you don’t have to go through all these stress all you have to do is install a plugin, insert your AdSense codes and you’re done. To do so, follow the guide below:
How To Insert Ads into Middle of Post Content
Adding AdSense codes into Blogger template
First of all backup your template before you make any changes.
1. Now search for this code <data:post.body/> in your Blogger template and replace it with the code below –
<div id="PostBody"><data:post.body/></div><div id="AdCode"><div style='margin:5px 0;text-align:center;clear:both;'><!-- Ad Unit Code Here --></div></div>
Most times you’d find this code appearing more than once like 2 or 3 times. We’ve found out that the 2nd one is most times the right code
2. Now search for closing </body> tag and put the code below above it.
<b:if cond='data:blog.pageType == "item"'><script>$AdCode = $("#AdCode").html();$("#PostBody br:lt(1)").replaceWith($AdCode);$("#AdCode").remove();</script></b:if>
3. Save the changes you’ve made in Blogger and watch your AdSense ads appear in the middle of your blog posts.
Easy wasn’t it? We’d still be dropping more of blogger and WordPress tutorials to guide you all.Subscribe To My YouTube Channel For Latest Football Gameplay Videos... Click HERE