Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

How to add adsense banner inside all single posts

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #69584


    I would like to insert adsense ads inside all single posts just after the content and before the comments. I tried by modifying the single.php but I was not able to place the ad in that location without destroying everything.

    Could you please help me?

    Thanks in advance!


    Hi there,

    Yes you need to customize the single.php file. Can you please clarify what you have modify?

    Thank you!



    Basically, what I would like to do is to place the Adsense banner just at the end of the text of the post and before the tags. I tried different locations in the single.php but I couldn´t get that. Do you know if it is possible?


    Hi @esther-samper-martinez

    Just go to theme directory and go to template-parts directory and open the file content.php and go to line no:88 then paste your Adsense code before line no:88 you will see below line of code:

    <div class="entry-content">
        <?php the_content(); ?>
    </div><!-- .entry-content -->

    Thank you!


    ¡Thanks a lot! That’s exactly what I need it 🙂


    Welcome anytime @esther-samper-martinez

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.