Embedding Ads in Your Post

2007 May 11
by Costa

I thought almost everyone with a blog that runs Adsense would know by now on how to embed their adsense into their post like what i am doing here. Anyway, since I have some enquiries as to how I inserted these Ads, this is the code that you have to insert into your files. It works for all Internet Ads be it Adsense or Bidsvertiser or whatever.

<div style=”display: block; float: right; padding:5px”>Your Codes Here</div>

If you want the Ads to appear on the left side, just change it to float left.

To have the As to appear in your Home page go to Dashboard-Presentation-Theme Editor- Index Php. Look for these codes among the top few lines.

<div class=”post” id=”post-<?php the_ID(); ?>”>

Immediately AFTER this line of codes, insert those codes just now with all the Ads codes. It should appear like what you see in this blog.

If you just want the Ads to appear in a Single post, go to Dashboard-Presentation-Theme Editor- Single php and follow the same procedure. That way, people will only see ads in your single post.

Other Interesting Topics

4 Comments leave one →
2007 May 11

Actually, I was thinking of adding this function but I think it would look rather ugly on my sites. I am too vain lah.

[Reply]

2007 May 11

great info. I am using it eversince gaman from sabahan.com advised me to.
dah lama ndak pigi sini. in fact, im one of the early bird to know this makanon, like food in our kadazan language. ;)

[Reply]

2007 May 12

Wah Ah Pek! Blog of The Day in Bloggerwave! Congratulations ar~~ making you famous oledi. :D

[Reply]

2007 May 12

PapaJoneh, I thought it’s takanon in Kadazan? :mrgreen:

[Reply]

Leave A Comment

Note: You can use basic XHTML in your comments. Your email address will never be published.