Forums

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

  1. kushalkoolwal
    Member
    Posted 10 months 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 10 months 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 10 months 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 10 months ago #

    Anybody???

  5. techmulla
    Member
    Posted 8 months ago #

    custom fields :)

  6. rkaul
    Member
    Posted 7 months 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 7 months 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!

Reply

You must log in to post.

About this Topic