[SOLVED] Adsense won't show up on homepage of atahualpa theme blog.
Hi there,
I'm running Atahualpa 3.6.7 on WordPress 3.2.1 at www.PeachtreeParents.com. Adsense works on every page but the home page. Meaning if I go directly to www.PeachtreeParents.com I can't see the ads on the upper right or the lower right inner sidebars. Once I click on a different post, the ads show up fine. I'm not using plugins, I copied and pasted the code into a text widget. I tried various adsense plugins, and it did not resolve the issue, so deleted the plugin files and went back to using the widgets. This has always worked for me on other blogs. In fact, it also worked for me on this particular blog before I changed themes to Atahualpa. I've looked around for this solution and can't find anything. Any ideas? |
I'm not sure this is the solution but first have you applied all the 3.6.7 patches?
|
Great, thanks for the tips.
This was already set to NO. PATCH 367-01: Odd effects when 'CSS: Compress' = 'Yes' Thanks, just tried this. PATCH 367-03: PHP errors when adding widget areas in index.php Done. PATCH 367-04 (incorporated with 367-02): Hovering over a Post/Page title only shows "Permanent Link to" Done. PATCH 367-05: Site Title appended after the 'WordPress SEO by Yoast' title I also dumped the cache, did a database repair (just in case) through my hosting provider Bluehost so it would dump anything misc. and opened a new browser in Firefox instead of Safari just to make sure all is cleared out. Still no luck.... |
Patch 1 should still be implemented as there are other issues it may have affected other than the one listed.
Also have you tried deactivating other plugins to see if there is a plugin conflict? |
Got it. I fully implemented the first patch as suggested.
I also deleted all of my plugins, dumped the cache, and nothing changed. |
The code in your widget looks "interesting". Could you post so we can be certain of what you have there?
|
Sure! Thanks so much for the help.
This is the code for the adsense in the widget. Or did you mean a different set of code somewhere in my css or stylesheet? <script type="text/javascript"><!-- google_ad_client = "pub-6182748946114658"; /* 200x200, created 8/15/11 */ google_ad_slot = "3190240187"; google_ad_width = 200; google_ad_height = 200; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> I just can't make sense of why I can see it everywhere -but- the landing page. |
I just pasted that code in the text widget on my test site and shows just fine on the landing page. Have you added any code to the theme files directly? How about custom CSS? :confused::confused:
|
That was smart, I didn't think to try that. I can't think of what I might have done to the code, but I'll check through it and see. I'll also check the custom CSS setting.
And I think if I wrote down a few settings I used, I could also just reinstall the theme and get it back up and running pretty quickly. Thanks! I'll see what happens. |
IT WORKED!
I feel silly I didn't think to look in the custom CSS option before. I looked and realized there was code in there for the widgets. This was what I had: } div.widget_recent_entries ul li { margin-bottom: 10px; } div.widget_categories ul li { margin-bottom: 6px; } div.widget_archive ul li { margin-bottom: 7px; } div.widget_text ul li { margin-bottom: 7px; } div.widget_recent_comments ul li { margin-bottom: 9px; } I didn't think I would have touched any of the widgets except text. I feel like I probably tweaked it to adjust the margin to better fit the 200x200 ad, and then later must have realized I could adjust it directly in the Widget options. So I deleted the text widget code above, saved, and it worked. Thanks so much!! |
All times are GMT -6. The time now is 08:03 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.