Skip to content

June 19, 2010

4

Side by Side Adsense Placement

How to put two AdSense ads side by side. One on the left, another on the right
These tutorial can be implemented in a self-hosted wordpress blog and in any blogger.com / blogspot powered blog.

CONTENTS

  1. The Codes
  2. Self-Hosted WordPress Blog
  3. Blogger Blogspot Blog


Here’s two codes you need to place inside the wordpress theme or blogger template:

Code 1 for left side: <div style=”display:block;float:left;margin: 5px 5px 5px 5px;”> Adsense code 1 here </div>

Code 2 for right side: <div style=”display:block;float:right;margin: 5px 5px 5px 5px;”> Adsense code 2 here </div>

Where to put the code?

I. For Self-Hosted WordPress Blog
You may place the code in single.php or index.php

  1. Login to your wordpress admin blog -> Appearance
  2. Editor -> single.php or Editor -> index.php
  3. Click [Update File] to save the change. Done.


I. For Blogger Blogspot Blog

  1. Putting inside Page Element
    1. Login to blogger.com -> Layouts
    2. Page Elements -> HTML / JAVASCRIPT -> drag and drop where you want to put it
    3. Add two codes above along with Adsense codes
    4. Click [Saves]. Done.
  2. Placing inside the Template
    1. Login to blogger.com -> Layouts -> Edit HTML -> check/thick Expand Widget Template
    2. Put the two codes above + AdSense codes wherever you want.
    3. Save Template. Done.

Notes:

  1. The two ads ideally should have the same size e.g. 250×250 on the left, and 250×250 on the right, etc.
  2. You may put Adsense on the left, and other ads such as AdBrite on the right.

Read more from Asides
4 Comments Post a comment
  1. Jun 21 2010

    thanks for the tips, i may apply it later

    Reply
  2. Jul 5 2010

    Mas Fatih, apakah script HTML tersebut dapat digunakan dengan memasukan kode dari situs iklan lain tapi tetap terpasang di side bar?

    Reply
  3. Aug 31 2010

    Was able to make it work in my http://www.thedisciplers.com blog. Thanks a lot dude!!!

    Reply
  4. Oct 10 2010

    Thank you very much! This is the what I was looking for 3 months. I put the code below in header.php

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments