How can i add Adsense to the sidebar ?

Discussion in 'WordPress' started by ala101, Nov 10, 2006.

  1. #1
    Hello!
    Iam trying to add google adsense to the sidebar of my blog but i haven't found the suitable plugin for it ..
    here is my blog :
    Ajax Girl

    Please guide me to the best way for this..

    note : i installed Adsense Deluxe but it didnt work with my blog..
     
    ala101, Nov 10, 2006 IP
  2. Zeo

    Zeo Active Member

    Messages:
    158
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Open sidebar.php add:
    
    <div class="line"></div>
    <h3>Adsense</h3>
    <div>
    ..adsense code here
    </div>
    <div class="line"></div>
    
    Code (markup):
    If you are using Sidebar Widgets find AdSense Widget for WordPress Sidebar :)
     
    Zeo, Nov 10, 2006 IP
  3. ala101

    ala101 Well-Known Member

    Messages:
    863
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    i editied
    /wp-admin/sidebar.php
    but that didnt work ..
    even i deleted sidebar.php and the website was working well ..
    :(
     
    ala101, Nov 10, 2006 IP
  4. career_info_fun

    career_info_fun Peon

    Messages:
    288
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I too was searching about adding adsense to sidebar, good info Zeo thanks a lot!
     
    career_info_fun, Nov 10, 2006 IP
  5. ala101

    ala101 Well-Known Member

    Messages:
    863
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Thanks Zeo its working now :)
    i should have altered the theme sidebar from the beginning ..
     
    ala101, Nov 11, 2006 IP
  6. Zeo

    Zeo Active Member

    Messages:
    158
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Hehehe. I should tell u it's for wp-content/themes/THEME_NAME/sidebar.php

    Take note that the code I gave was for ala101 blog is using theme 'Green Marinee'. It may differ from other theme.
     
    Zeo, Nov 11, 2006 IP