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?
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
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 »</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.
kushalkoolwal
Member
Posted 3 years ago #
techmulla
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>
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!