Quantcast
Channel: Blog De Manila » SEO
Viewing all articles
Browse latest Browse all 13

How To Embed Google Adsense Ad Unit in Left or Right Corner of Post Content?

$
0
0

Just a quick post today because I still have to finish another project which involve file and data encryption.

For my Friday quick post,  (if you haven’t noticed yet, all my Friday posts were mostly short tips) I would like to answer a question that I repeatedly receiving on my Inbox.

The question is: How To Embed Google Adsense Ad Unit in Left  Corner of Post Content?


If you are aware, a lot of WordPress blogs with Adsense on them have mostly Ads embedded on top left corner of their post.
The answer is very simple, you don’t need a computer science diploma for this. It only requires some coding on your part, or a simple copy-paste will do. Here’s the code:

<div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>
Your Google Adsense  Script here
</div>

If you are using Twenty Ten theme of WordPress , here’s the step on how to do it:
1. Make sure you have the Google Adsense script already. Save it on a notepad just to make sure.
2. Login to your WordPress Dashboard and Go to Appearance > Editor and open the Single.php
3. Look for this code:
embedded adsense
4. Insert the code directly below the

 <div class = "entry-content">

5.  It should look something like this:

embedded adsense on post6. Finally, don’t forget to SAVE or UPDATE the Single.php

If you want the Adsense  to show on the right, just change the float:left to float: right

You can also us the code not only for Adsense but for other contextual advertising providers too such as Bidvertiser.

Have a nice weekend everyone! By the way, don’t forget it’s Earthday 2011 tomorrow night!


Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles





Latest Images