WP Theme Header and Adsense Problem

zeeipad

Registered Member
Joined
May 27, 2011
Messages
71
Reaction score
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 -->
 
: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.
 
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
 
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.
 
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:
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.
 
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.
 
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:
 
Back
Top