1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adsense in wordpress sidebar

Discussion in 'WordPress' started by J8Diamonds, Feb 8, 2008.

  1. #1
    Tried about 3 different adsense manager things now and none of them work correctly.

    Might be the new upgrade or might just be I'm an idiot :D

    Can somebody link me up to an adsense plugin for the sidebar please? :)
     
    J8Diamonds, Feb 8, 2008 IP
  2. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm thinking the latter might be the case. Have you a widget ready wordpress blog? What's the site?
     
    Cheap SEO Services, Feb 8, 2008 IP
  3. J8Diamonds

    J8Diamonds Active Member

    Messages:
    354
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I've got one working on Captain Quads (really should update that more) and I used the same one on Lolcat pictures and I get the following error
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/lolcat/public_html/wp-content/plugins/widgets/adsense.php on line 50

    Now obviously it's just the default theme that's up just now but I have changed it to various others, including the one on CaptainQuads.com and it's not helped, I get the same error.

    Any thoughts?
     
    J8Diamonds, Feb 8, 2008 IP
  4. xxMirceaxx

    xxMirceaxx Well-Known Member

    Messages:
    917
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    135
    #4
    open from presentation->theme editor the file sidebar.php and insert the code manually before 'blogroll' or wherever you want it to show and don't forget to click update file ...
     
    xxMirceaxx, Feb 8, 2008 IP
    J8Diamonds likes this.
  5. myp

    myp Well-Known Member

    Messages:
    1,281
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Editing your theme isn't that hard, all you have to do is update the sidebar.php file in your theme's folder. You can do it like xxMirceaxx said if your permissions allow you to, or you can go to the file download it, edit it, and overwrite it. It will be in wp-content>themes>'your theme name'>sidebar.php.
     
    myp, Feb 8, 2008 IP
  6. shedboy

    shedboy Peon

    Messages:
    63
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I create a seperate file called say ads1.php and then in the sidebar.php where I want the ad to show I would put

    <?php include (TEMPLATEPATH . '/ads1.php'); ?>
     
    shedboy, Feb 11, 2008 IP
  7. webrehash

    webrehash Peon

    Messages:
    163
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Either of those methods work fine. I prefer using includes, but with adsense you can make the changes to the ad within adsense, so there isn't a huge reason to use includes, unless you have a ton of unique pages using the same code, then you can just change them faster using an include.
     
    webrehash, Feb 11, 2008 IP
  8. Gallito

    Gallito Peon

    Messages:
    1,939
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I just edited the sidebar in my theme, didn't take long at all.
     
    Gallito, Feb 11, 2008 IP
  9. Crynos

    Crynos Peon

    Messages:
    733
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you use widgets it's a pain to just update the sidebar though. What adsense managers have you tried?
     
    Crynos, Feb 13, 2008 IP