Forums

[resolved] How to place Adsense within the text of your post (7 posts)

  1. kushalkoolwal
    Member
    Posted 3 years ago #

    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?

  2. 1lear
    Member
    Posted 3 years ago #

    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

  3. kushalkoolwal
    Member
    Posted 3 years ago #

    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.

  4. kushalkoolwal
    Member
    Posted 3 years ago #

    Anybody???

  5. techmulla
    Member
    Posted 2 years ago #

    custom fields :)

  6. rkaul
    Member
    Posted 2 years ago #

    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>

  7. msritter
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic