1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding Adsense to Theme

Discussion in 'Blogging' started by skyrain, Sep 17, 2009.

  1. skyrain

    skyrain Registered Member

    Joined:
    Sep 16, 2009
    Messages:
    65
    Likes Received:
    62
    I want to add Adsense to some templates so I have:

    1.) Link unit across the top of each page
    2.) Sidebar
    3.) Rectangle ad block floating on the left, inside the content, on the first post on every page.

    I got #2 done.

    I found this link from searching the forum http://www.tamba2.org.uk/wordpress/adsense/ -- It has help for #1, but it doesn't tell you which file to edit.

    Still haven't found a way to do #3

    Can anyone help me or point me to a good, easy-to-understand guide on getting #1 and #3 done?
     
  2. Lurking

    Lurking Junior Member

    Joined:
    Apr 14, 2009
    Messages:
    101
    Likes Received:
    110
    I recommend you stick to 2 ads. 1 directly above the content and below the header, and a second one on the sidebar blended to make it look like menu links.

    Getting it into the post itself is not easy. I have no idea how to pull it off.
     
    • Thanks Thanks x 1
  3. dchuk

    dchuk Newbie

    Joined:
    Mar 11, 2009
    Messages:
    19
    Likes Received:
    1
    In your theme template file "single.php", just before the call "the_content()" you would add the adsense code wrapped in a <div style="float: left;"></div>

    That should drop it right in...
     
    • Thanks Thanks x 1
  4. skyrain

    skyrain Registered Member

    Joined:
    Sep 16, 2009
    Messages:
    65
    Likes Received:
    62
    Thanks guys, will give this info a spin :)