• Resolved kushalkoolwal

    (@kushalkoolwal)


    I am sure this must have been answered somewhere but I am not able to find the answer after googling for a while.

    I would like to place my Adsense Ads in between the text of a single post. An example of somebody else doing this is here.

    How can I do that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Should be easy for you to do. Just copy the embed code from your adsense ad and paste it directly into the post where you want it.

    for example

    llllllaaaaaaaalllllllaaaaaaannnnmmmmmeeeeeeeee(embed adsense code)eeeeeeellllllcccccccmmmmmmmmmmmmcccciiiiiiii
    ppppppppffffffoofooofofoofofofof.

    Hope this helps

    Thread Starter kushalkoolwal

    (@kushalkoolwal)

    I wish it would have been that easy. However this how my post gets displayed from single.php file:

    <div class="entry">
    <?php the_content('<p>Continue reading &raquo;</p>'); ?>
    <div>

    So no matter if I paste my adsense code before or after <div> tags it won’t be in the middle of the text.

    Thread Starter kushalkoolwal

    (@kushalkoolwal)

    Anybody???

    custom fields ??

    Look at the source of the page you have referred to. Include your adsense code within the following html codes:

    <p><div style="display:block;float:left;padding:5px;">
    your adsense code goes here
    </div></p>

    Thank you rkaul! That is what I have been wanting to do for quite some time, just not able to locate the code. It worked perfectly!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to place Adsense within the text of your post’ is closed to new replies.