This was a secret mystery which everyone was unaware that if they could place the AdSense ad code right in the middle of blogger post and that too automatically. And people just used to think that this could be done only in Wordpress with the support of its awesome plugins, but well there are people who have achieved a great knowledge in customizing blogger and they came up with a nice solution to automatically ad AdSense ad code right inside middle of blogger post.
So now we have already posted on how you can add Adsense code below post title in blogger but if you were wondering on how you can add the Adsense ad unit in the middle of blogger post, well now your search ends here check below steps.
- Open Blogger > Template > Edit HTML.
Ctrl+ F& search for
<data:post.body/>tag, now you can may find this code twice or thrice so you need to check which is the right one.
- Make sure to backup your Template before proceeding to next step.
- Now you need to replace the above code with below code.
<div expr:id='"aim1" + data:post.id'/>
<div style='float:right;border:1px solid #aaa;background: #f5f5f5 url(http://1.bp.blogspot.com/-n5s9Bu0JCgg/UA_AfQ5qLkI/AAAAAAAAFMU/G9FOuh4SP7k/s0/bg-pattern.png) repeat top left;padding:10px;clear:both; margin:10px 0;border-radius:3px;box-shadow:inset 0 0 3px 2px #ccc'>
Paste Parsed Adsense Code Here
<div expr:id='"aim2" + data:post.id'>
- Now just replace the blue line with your Parsed Adsense Ad Code (Parsing AdSense ad code means to make few lines HTML friendly, so just use our converter)
- Now I have styled the widget using few lines of CSS code, so you might wanna change it according to your blog design.
- You can even change the position of Adsense ad code by changing the value in Red color in above code.
So now enjoy guys using this this simple trick to manage your Adsense ad unit right inside blogger post and aligning it in the middle automatically.