Adsense disappears when I manually add code to Sidebar

  • EdwardOwen


    I’m setting up a site at

    When I use the Adsense option in the theme controls, it places banner ads on the front page with no problem. But as soon as I hard code other ads into the left side banner, those previous ads disappear.

    Can’t figure out why. Any suggestions?





    Are you using the exact same code as the ones in your graphene options? I’m not sure, but I think you can only display one “set” of code per webpage. So, once you have your code, you can insert it in multiple places.. but it must be the same code.

    I think??



    Josh, after I posted that, I saw another post that Google only allows three boxes per page. The program had been putting in three on the primary page. I suspect my manual coding overrode those.

    Make sense?





    Hmmm.. first I’ve heard of this. If it’s true, you can always hide one of the adsense blocks on the main page (although I’m not sure how adsense would “see” this).

    If you want to re-add them to your main page, I can give you the code to hide one of them… and we can give it a test.

    (I’m taking my 3-year-old to Disney this year for her first time).


    Kenneth John Odle


    Yes, it’s true: Google will only populate the first three Adsense slots it runs into, for the simple reason that they want their ads at the top of the page. If you want ads on the sidebar on the front, try using the alternate front page widgets.



    So if we were to hide on of the three adsense blocks inserted on the main page via css; would adsense see this as three, or two blocks?


    Kenneth John Odle


    Probably three, if you’re talking about using display:none, because the code for the ad is technically still there. It just doesn’t display.

    You’d really want to use the widget logic plugin or a PHP if is_home() + echo to properly hide it.



    You’ve got me on this one guys. I’m a novice at php, but can cut and paste with the best of them. I liked the blocks the theme was inserting, especially when you go to the individual pages on the site, and they disappear as well. This isn’t a major deal, but at least I’m learning the ropes.

    Do you have any suggestions for a widget to use? I didn’t see one in the program itself.

    Josh, you guys will have a great time in Disney. My primary blog is on cruises, but Disney is my first love. If you’re new to it as well, let me know if you need any help.



    Right. Gotcha.

    Okay, scratch my idea above… and listen to Ken!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!