In my last article I discussed how to setup an Ad Unit. Now let’s ad this code to your blog (easily).

Remember that adsensedeluxe plugin that you installed from my plugin article? Well, this is where it comes in handy.  This plugin makes it super simple to add the adsense code to your site and even easier to change the ad format around.

In your wordpress menu click Options -> AdsenseDeluxe.

Now click on Add_new

Now put a name to associate with this ad and copy and paste your adsense code into that box that says adsense code. You can add a description if you like and then click on Add Adsense Block.

You now need to place this adsense block somewhere on your site.

Now in your wordpress menu go to Presentation -> Theme Editor

We have to do a little bit of code manipulation it’s not a lot so don’t be scared. Now all those names on the right of your screen are all file names related to your template. Click on the one that says Single Post (or something related to Single).

Now be warned that this might take a bit of playing but you should eventually figure it out. What you need to do is simply paste <?php adsense_deluxe_ads(’XXXX’); ?> in your template. Where XXXX is the ‘name’ that you entered earlier in this post. I usually paste a small banner at the top (or bottom) of the post. In this case I’d post that code under the ‘author name’ or ‘the_title’.

The best way to go is to simply add the code, click save and the refresh a single blog post. See if your code was added correctly and if it was then you’ll see the code there. Although, adsense usually takes a little while to show up on a blog so it might show up as a blank space.

I also like to add a square (250 X 250) ad unit somwhere in the text. These usually are the highest clicked units on your page. You can easily wrap the text around your content by using the following bit of code.

<div style=”display:block;float:left;margin: 7px 7px 7px 7px;”> <?php adsense_deluxe_ads(’XXXX’); ?> </div>

Now that you know the basics you can simply go back and make a couple more adsense units and add them to your site!  If you have problems please contact me, I can help you along or we can work out some deal for me to do it for you.  However, it’s definitely in your benefit to figure out how to do it yourself.   What’s that proverb?

Teach a man to fish?

Share This Post:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Bumpzee
  • De.lirio.us
  • Fark
  • Furl
  • Propeller
  • Reddit
  • StumbleUpon

Related posts