homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

AdSense & Wordpress

 5:14 am on Aug 26, 2007 (gmt 0)

Yes I just was recently accepted in Adsense with my wordpress blog site....I'm having some trouble inserting the code.Everytime I insert the code to the header it just shows a white box.Can anyone offer some help.Its much appreciated



 4:25 pm on Aug 26, 2007 (gmt 0)

Which template are you using?


 7:11 pm on Aug 26, 2007 (gmt 0)

the i feel dirty template


 7:51 pm on Aug 26, 2007 (gmt 0)

If you look through the free templates available on WordPress, you'll find some that are AdSense ready. Do a search.

Beyond that, I just insert the AdSense code directly into the appropriate php file when necessary. That seems to work with templates that have "single" and "page" php files.


 9:38 pm on Aug 26, 2007 (gmt 0)

I tried inserting the codes in the php files...like the header & foot...but all I get is a whitebox where the ads suppose to show....is there something that could be possibly blocking it


 9:51 pm on Aug 26, 2007 (gmt 0)

Depending on your theme's template, put the Adsense code between <div id="footer"> and </div> in footer.php. Also check that you don't have any ad-blocking in your browser that could prevent ad display.


 10:28 pm on Aug 26, 2007 (gmt 0)

still nothing


 11:08 pm on Aug 26, 2007 (gmt 0)

If your template has a file called "single" for posts, why don't you try something like this?

<div class="post_content">
<p><div style="float: left; margin: 3px 15px 3px 3px;">

<script type="text/javascript"><!--
google_ad_client = "";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_channel ="";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "006699";
google_color_url = "666666";
google_color_text = "666666";//--></script>
<script type="text/javascript"

The div class might be called something else. See if AS shows up in the context of an actual post. At least you'll know whether or not the code will work. Also, there's a plugin called AdSense Manager which I have yet to use.


 3:56 pm on Aug 27, 2007 (gmt 0)

still nothing....does it matter what template you are using


 5:20 pm on Aug 27, 2007 (gmt 0)

Have you tried a different browser? Could an ad blocker be kicking in and preventing you from seeing the ads?

Just in case it's template related, plug the code into the standard classic template and flip your blog to that for a minute or two. If that doesn't work either, it's not the template.


 7:48 pm on Aug 27, 2007 (gmt 0)

Try creating a regular html page and adding some text and an Adsense unit. If the ads still don't display, then it's not a Wordpress problem and could instead be a problem with your Adsense account, .htaccess, robots.txt, server, etc.


 7:07 pm on Aug 29, 2007 (gmt 0)

Good thought, iridiax.


 7:03 pm on Aug 31, 2007 (gmt 0)

I already creating a regular html page...ads show just fine.....so I contacted Google and received this message:

I understand you're having difficulty implementing the AdSense ads onto
your website. I confirmed that the ad code is on your site but it looks
like the website does not support third party Javascript. While we can
answer questions about the AdSense code, we're not able to offer technical
assistance for another company's product or service. I'd therefore
recommend that you contact Wordpress for further assistance with this
problem. I appreciate your understanding in this matter.

Cant anyone tell me how I can have use my adesnse with my wordpress.....


 1:55 pm on Sep 1, 2007 (gmt 0)


I have many wordpress sites using adsense - I can help you with adding your adsense to your posts.

Either give me Editor rights or tell me which files you have in your Theme folder.


 3:40 pm on Sep 1, 2007 (gmt 0)

Am I missing something, I thought Wordpress didn't allow Adsense.
See their faq page:


 3:56 pm on Sep 1, 2007 (gmt 0)

Maybe I'm just old fashioned but I do believe that's the first place I would have looked.

A FAQ's page.. who'd a thunk it?


 4:45 pm on Sep 1, 2007 (gmt 0)

Am I missing something, I thought Wordpress didn't allow Adsense

That's for wordpress hosted blogs. Jay718's blog is hosted on its own domain.

Jay718 stickied me the other day and I looked at the blog. The code looks good and I believe it is executing as there is a white space where the code is inserted. Jay, I couldn't give you detailed instructions the other day as I was at a machine that I don't access my AdSense account through. What you want to do is go into AdSense setup. At the bottom of the main setup page, under More Options choose "Fill space with a solid color." Choose any color other than white. Repaste the code and see what happens. If the solid color shows then it's time to again contact the AdSense folks.


 8:21 pm on Sep 1, 2007 (gmt 0)

WordPress does not accomodate javascript very well. That said, I've never had a problem with AdSense. In my experience, other java stuff doesn't even register with WP unless you use a somewhat tortured workaround.


 5:16 pm on Sep 2, 2007 (gmt 0)

First I appreciate everybody's help.....it makes things alittle less stressful :)......now after trying everything you guys say still no adsense....I'm starting to think its the currently template I'm using maybe....Go60guy....what template are u currently using.......


 3:13 am on Sep 3, 2007 (gmt 0)

Hmm... I'm using several different templates. None that would be in keeping with your theme, however.

I would suggest that you download one of the free templates that fits your topic and see if you can add AdSense to the "Hello World" page by inserting the AS code in the index.php file. Be certain to close off all divs properly.

Just add a blog folder to a site that has no blog. You can delete it after testing. Very simple to do with Fantastico.

I sometimes test stuff this way.


 12:39 pm on Sep 4, 2007 (gmt 0)

Is it possible for you to reinstall Wordpress (if it is a relatively new blog)? Also, if your Wordpress version and template version are not compatible, you can have this problem. On my own domains I run several wordpress blogs with Adsense and everything works great.


 9:11 am on Sep 23, 2007 (gmt 0)

a templete named "proadsense" I think that you need.ˇˇgood luck

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved