Skip to content
new ogbongeblog logo
  • Advertise
  • Blog
  • Contact

How I Make Adsense Appear In Middle Of Blogger Posts (New and Old) Without Using Post Template Feature

September 17, 2014

·

Uncategorized
jidetheblogger Avatar
jidetheblogger

In my previous post, I explained how to easily place Adsense ads in middle of Blogger posts using the Blogger “ Post Template ” feature. Although the trick is very easy to implement and automatically displays ad in desktop and mobile view, the trick doesn’t display the ads in old posts.

If you want the ad to display in the middle of all posts (old and new), you will have to hack your blog’s html and add some codes to it. I stumbled on the trick here , implemented it and works fine on my blog. I even use the trick to make Adsense ads appear in the middle of posts on Blogger mobile view.

This script in the trick actually looks for number of <br/>  (line break) tags inside your post and display ad unit.

adsense in middle

How To Get Started


==> BACK UP your blog template. Very Important!
==> Generate your Adsense ad code from www.google.com/adsense
==> Parse the Adsense ad code at www.freehtmlparser.blogspot.com (paste and click “Encode”)
==> Login to your Blogger dashboard and back up your template ( Very Important! )
==> Go to “ Template ” > “ Edit HTML “

==> Use CTRL F to search your HTML for the JQuery script below:

<script src=’https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js’ type=’text/javascript’/>

If it exists, move on to the next step. If not, copy the script above and paste directly above  </body>  in your blog’s html

==> Use CTRL F to find  </body>  again and directly above it, paste the code highlighted below:

<b:if cond=’data:blog.pageType == &quot;item&quot;’>
<script>
 $AdCode = $(“#AdCode”).html();
 $(“#PostBody br:lt(1)”).replaceWith($AdCode);
 $(“#AdCode”).remove();
</script>
</b:if>

==> Save the Template

==> Go back to “ Template ” > Edit HTML . Use CTRL F to find <data:post.body/> . 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;’>
 <!– Paste PARSED Ad Unit Code Here –>
</div>
</div>

==> Save the template

NB : Your template might have 2 or more <data:post.body/> codes. You have to identify correct one by using “try and error” trick. The 2nd or 3rd instance works in most templates though.

==> Go to “ New Post ” > “ Options “. Ensure you select “ Press Enter for line breaks “.

enteronlinebreakinblogspotblog

That’s all.

To make it appear on mobile view, find  <b:includable id=’mobile-post’ var=’post’>  in your HTML and replace the <data:post.body/> under the line as explained above.

I hope it works for you.

If it doesn’t work for you, you can simply revert the changes by uploading the back up you created before implementing the trick.

Please Share :
adsense blogger tips blogspot tutorials

Like What You Read?

Sign Up to get similar articles delivered to your email inbox.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

43 responses to “How I Make Adsense Appear In Middle Of Blogger Posts (New and Old) Without Using Post Template Feature”

  1. Bayo Avatar
    Bayo
    September 9, 2014

    Wow! This is indeed an advanced trick. WIll try it and if it doesn't work, will stick to the simple post template trick. Thanks for sharing..

    Loading…
    Reply
  2. Anonymous Avatar
    Anonymous
    September 9, 2014

    This will definitely make alot of sense in Blogger mobile view. WIll try it too once on PC. Thx boss

    Loading…
    Reply
  3. Opzydon Woros Avatar
    Opzydon Woros
    September 9, 2014

    Oh great new trick gonna try this on my blog http://www.healthtutortips.com

    Loading…
    Reply
  4. Akaahan Terungwa Avatar
    Akaahan Terungwa
    September 10, 2014

    This trick is certainly brilliant, Jide. Though I don't use Adsense on my blogs, I can predict that the new ad position will certainly guarantee more visibility and hence a higher click through rate.

    Sincerely, I hope this makes more money for all who are both on Blogger and are running Adsense.

    Make the day great!

    Always,Terungwa

    Loading…
    Reply
  5. Prince Hypermega Avatar
    Prince Hypermega
    September 10, 2014

    Pls i need your response sir. Is 35thousand pageviews ok for applying for adsense? If it is not, then how many pageviews must i have before applying for adsense?

    Loading…
    Reply
    1. John Adikwuru Avatar
      John Adikwuru
      January 23, 2015

      I don't think that page views really matter. I had less than 3k page views when I applied and was approved.

      Have quality contents and adhere to Google's AdSense programme policy, and you're good to go.

      Loading…
      Reply
  6. Prince David Adetula Avatar
    Prince David Adetula
    September 11, 2014

    I have tried several times to implement the Google adsense in my blog post but it does not show. Can you help me sir?

    Loading…
    Reply
    1. Olagbaiye Theophilus Avatar
      Olagbaiye Theophilus
      December 25, 2014

      always add the code when on HTML view and not on 'Compose" or else it wont show

      Loading…
      Reply
  7. Grace Joseph Avatar
    Grace Joseph
    September 13, 2014

    pretty cool, I'll try it on my blog, think I'll earn better this way

    Loading…
    Reply
  8. Severek Yasa Avatar
    Severek Yasa
    January 18, 2015

    Thank you but Not working for old posts. What I have to do?

    Loading…
    Reply
  9. peter egwuatu Avatar
    peter egwuatu
    March 20, 2015

    mr jide, the one of making it to show on mobile is confusing to me, en lighting me the more. thanks

    Loading…
    Reply
  10. Godwin Lawson Avatar
    Godwin Lawson
    March 30, 2015

    WOW! I just did it now and it worked for me on my blog http://www.hezevibes.com

    Thank you Jide.

    Loading…
    Reply
  11. Uche Francis Avatar
    Uche Francis
    April 27, 2015

    Hello Jide!

    I've tried, but really cant get this to work on my blog.

    Am actually trying to embed a Google Adsense link Ads at the middle or end of my post but it just wouldn't come up.

    Any recommendations?

    Thank you.

    Loading…
    Reply
  12. samsun nahar Avatar
    samsun nahar
    June 11, 2015

    This actually works for me. I have implemented it on my http://www.topandroidstuff.blogspot.com site. Check it.

    Loading…
    Reply
  13. Benue Forum Avatar
    Benue Forum
    April 29, 2016

    Jide thank you very much, it works perfectly well on our blog(benueforum.com)though the mobile aspect is confusing as I can't find the under the mobile description above. Please can I have more explanation?

    Loading…
    Reply
  14. Jessica Avatar
    Jessica
    May 5, 2016

    please i need more explanation on the mobile view implementation also the desktop view is not showing well on this particular page http://www.futogbedu.com/2016/03/why-do-guys-love-touching-breast-of-ladies.html please help

    Loading…
    Reply
  15. WizyTechs Blog Avatar
    WizyTechs Blog
    July 25, 2016

    tenx Jide for this wonderful trick. it worked perfectly on my blog. take a look at WizyTechs.Com

    Loading…
    Reply
    1. emeka Avatar
      emeka
      February 15, 2019

      cool

      Loading…
      Reply
  16. Mobs Avatar
    Mobs
    August 21, 2016

    how can i make the code appear after first few lines under the post title

    Loading…
    Reply
  17. TrendBaze Media Avatar
    TrendBaze Media
    September 3, 2016

    been trying since but i dont get it right

    Loading…
    Reply
  18. Habib rasel Avatar
    Habib rasel
    October 29, 2016

    Thanks you sir for this trick.

    Loading…
    Reply
  19. Michael Vilay Avatar
    Michael Vilay
    December 4, 2016

    Is it me or do you have more than 3 adsense ads on your site? I count 4, isn't that against adsense TOS?

    Loading…
    Reply
  20. Tecno Avatar
    Tecno
    March 4, 2017

    Nice tutorial, let me give it a try

    Loading…
    Reply
  21. akokosblog Avatar
    akokosblog
    April 7, 2017

    Thanks so much

    Loading…
    Reply
  22. Theo Nugros Avatar
    Theo Nugros
    April 25, 2017

    when i open edit html page in layout and search for the word u told for data post body it doesnt show any codelike this anywhere in that html edit page thans help me to add ads in my blog thanks

    Loading…
    Reply
  23. Ambrose Nicholas Avatar
    Ambrose Nicholas
    May 3, 2017

    Thanks so much for your update Sir, followed your instructions and I was able to place my ads at the top and below posts on my blog http://www.afrikkupdate.com/

    God bless you Sir Jide!!

    Loading…
    Reply
  24. Gideon MicDare Avatar
    Gideon MicDare
    June 8, 2017

    Thanks for the info, I implement it on my blog and it works perfectly

    Loading…
    Reply
  25. MY UNNNEWS Avatar
    MY UNNNEWS
    June 12, 2017

    thanksit really helped

    Loading…
    Reply
  26. InfoClick Nigeria Avatar
    InfoClick Nigeria
    July 20, 2017

    Wow, Thanks for this… I just applied it to my blog( http://www.appgamedownload.com/ ) and booom I got it right…

    Loading…
    Reply
  27. humphery okechukwu Avatar
    humphery okechukwu
    August 10, 2017

    I don't understand this. Please explain,

    "To make it appear on mobile view, find in your HTML and replace the under the line as explained above"

    Loading…
    Reply
  28. EMMYB WEB Avatar
    EMMYB WEB
    August 27, 2017

    it works perfectly, God bless Ogbonge master,

    Loading…
    Reply
  29. iPostcity Avatar
    iPostcity
    August 30, 2017

    Thanks very muchNow my AdSense can display in all post

    Loading…
    Reply
  30. Favour Avatar
    Favour
    October 21, 2017

    I don’t No the first code could not save it keeps telling me ‘Error parsing XML, line 3149, column 13: Open quote is expected for attribute “src” associated with an element type “script”. Do I have to parse everythingguideyouon.blogspot.com.ng

    Loading…
    Reply
  31. ozochima Avatar
    ozochima
    November 9, 2017

    My is displaying in a different way and it making sense getting enough click on ads @ jarcoo.com

    Loading…
    Reply
  32. Francis Avatar
    Francis
    November 27, 2017

    Seriously I never knew blogger was this tough, I have been enjoying the grace of wordpress for long, everything is damn easy with wordpress. I have my other sites on wordpress but decided to try out my new site environmentgo.com on blogger but I am kinda regretting it.

    Thanks for the trick, but it did not work for me.

    Loading…
    Reply
  33. wale Avatar
    wale
    January 22, 2018

    Error parsing XML, line 2835, column 9: Open quote is expected for attribute “id” associated with an element type “div”.that is d errror im seeing

    Loading…
    Reply
  34. Omeh Collins ogbonna Avatar
    Omeh Collins ogbonna
    January 26, 2018

    Thanks Jude it worked perfectly well on my blog http://www.empiretechx.com

    Loading…
    Reply
    1. jidetheblogger Avatar
      jidetheblogger
      January 27, 2018

      Glad it worked for you.

      Loading…
      Reply
  35. Alvin Uchenna Avatar
    Alvin Uchenna
    April 2, 2018

    Thanks bro, it worked for me… Displayed ads at the middle of posts. Please it showed on mobile view but disappears on pc view. Any solution ??
    Check it out @ http://www.bloggingseries.com

    Loading…
    Reply
  36. Lucas Avatar
    Lucas
    July 6, 2018

    Hi guys.
    It’s work for me. Thank for your help
    My website is http://www.itviet.info
    regards

    Loading…
    Reply
  37. akram shiakh Avatar
    akram shiakh
    November 13, 2018

    Wow! nice article bro I just loved it and it helped a lot I will also recommend others to read your article

    Loading…
    Reply
  38. Precious okoro Avatar
    Precious okoro
    February 8, 2019

    Cool update just did for my blog https://Findschoolnews.com.ng

    Loading…
    Reply
  39. emeka Avatar
    emeka
    February 15, 2019

    thanks alot .its really helpful

    Loading…
    Reply

WANT TO ADVERTISE?

Chat on WhatsApp

RELATED POSTS

  • How To Display Adsense On Mobile Templates of Blogger/Blogspot blogs
  • How To Place Adsense Links Ads below WordPress Posts Titles
  • How I inserted Google Adsense Link List ads at the end of my blog posts

FEATURED


  • CREDICORP launches C.L.I.C.K.D. Scheme with FG’s 3MTT Programme, expanding affordable consumer credit for locally-assembled laptops and devices for digital workers

    CREDICORP launches C.L.I.C.K.D. Scheme with FG’s 3MTT Programme, expanding affordable consumer credit for locally-assembled laptops and devices for digital workers

  • What Happens to Your Online Accounts When You Die?

    What Happens to Your Online Accounts When You Die?

JOIN AI WEB DESIGN GROUP


  • AI Website Design Training Whatsapp Group by Jidetheblogger

    AI Website Design Training Whatsapp Group by Jidetheblogger

← 7 Tips for Ad dynamo Advertisers To Increase Campaign Performance
Buy Infinix Zero (16GB) at Konga With Free Delivery To Anywhere in Nigeria →

Join 25,000+ subscribers

Receive our latest blog posts in your inbox.

Search

Social

Facebook

Instagram

Twitter

new ogbongeblog logo

Copyright © 2026 | About | Advertise | Featured | Sitemap | Privacy Policy | Powered by WordPress

Your cart (items: 0)

Products in cart

Product
Details
Total
Subtotal ₦0.00
Shipping and discounts calculated at checkout.
View my cart
Go to checkout

Your cart is currently empty!

Start shopping

Notifications

%d

    LIKE My Fan Page

    Privacy Policy | Copyright © 2012,OgbongeBlog.All Rights Reserved. Powered by Blogger .
    Create a Mobile Site
    View Site in Mobile | Classic
    Share by: