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

WP Theme Header and Adsense Problem

Discussion in 'Web Design' started by zeeipad, Jun 26, 2011.

  1. zeeipad

    zeeipad Registered Member

    Joined:
    May 27, 2011
    Messages:
    71
    Likes Received:
    8
    I cannot seem to get this Adsense banner to show up in the header.

    Google is not being my friend in finding correct answers. Tried a couple of <div methods but i still end up seeing nothing in the place. Its becoming a headache.

    I am using the WP Theme magicBackground 2.1 and viewing in Firefox.

    Here is basically what I have sitting in the code at this point. Can anyone help me with this?

    Code:
    <!-- place you adsense code below here --> 
                
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXXXXXXX";
    /* 728x90, MPB Header */
    google_ad_slot = "XXXXXXXXXX";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="hxxp://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php 
                    $options = get_option("magicBackgroundOptions"); 
                    if (!is_array( $options )){ $options = array( 'ads' => 'AdSense code or your HTML goes here, You may configure this area in the admin section. ' ); }     
                    echo stripslashes($options['ads']);
                ?>
    
                <!-- place you adsense code above here --> 
     
  2. zeeipad

    zeeipad Registered Member

    Joined:
    May 27, 2011
    Messages:
    71
    Likes Received:
    8
    :eek: Stupid me. OK I found the magicbackground panel that the code goes in and I reverted the editing I manually did in the header.php.

    Still I see nothing up there. Is there anything else I did stupid or does it take time to get an ad up there? It is just an empty header box there right now.
     
  3. zeeipad

    zeeipad Registered Member

    Joined:
    May 27, 2011
    Messages:
    71
    Likes Received:
    8
    Here are the plugins I have active in case it could be one of them.

    Sharedaddy
    Exclude Pages from Navigation
    Easy Privacy Policy
    All in One SEO Pack
     
  4. Hydro

    Hydro BANNED BANNED

    Joined:
    May 24, 2011
    Messages:
    222
    Likes Received:
    150
    It usually takes a while for new ads to become live. If it looks like a blank space the same dimensions of your ad is there then it will show up just wait a bit.
     
    • Thanks Thanks x 1
  5. zeeipad

    zeeipad Registered Member

    Joined:
    May 27, 2011
    Messages:
    71
    Likes Received:
    8
    Let me try changing the color in magicbackground to see if something is there or not.

    Edit:
    Hell, I dont know. Think I will give it a few hours. Seriously getting a headache now...lol.

    I even pulled it up on I.E. and my h2 is hidden behind the header background on explorer. uhhh... yea.
     
    Last edited: Jun 26, 2011
  6. zeeipad

    zeeipad Registered Member

    Joined:
    May 27, 2011
    Messages:
    71
    Likes Received:
    8
    Played with it some more and still nothing. I went to amazon and grabbed an iframe banner and it went in flawlessly. So I guess I will forget about google.

    Maybe when I get into a CPA or something I can replace the Amazon one.. unless it starts bringing in some money...lol.
     
  7. falcoarticles

    falcoarticles Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    156
    Likes Received:
    53
    Make sure that you have content in website (not just empty page), then add Google code and wait for 24 hours. If you still won't be able to see ad (after cleaning your browser cache), begin looking for problems in your template.
     
    • Thanks Thanks x 1
  8. zeeipad

    zeeipad Registered Member

    Joined:
    May 27, 2011
    Messages:
    71
    Likes Received:
    8
    The problem was with the theme apparently.

    I wiped out WP on the hosting and started over today with a different theme. I am not really experienced in PHP but things are running smoother with the new theme. I am having to customize to put banners where I want them but its going ok so far. It even looks the same in I.E. 7, which the other them without adding anything at all... looked like crap in.

    Thanks for the help though. I am sure I will be asking for more sometime...lol :baby09: