Welcome to WebmasterWorld Guest from 54.205.170.21

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

AdSense & Wordpress

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

5+ Year Member



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)

5+ Year Member



Which template are you using?
7:11 pm on Aug 26, 2007 (gmt 0)

5+ Year Member



the i feel dirty template
7:51 pm on Aug 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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)

5+ Year Member



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)

5+ Year Member



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)

5+ Year Member



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

WebmasterWorld Senior Member 10+ Year Member



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"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>

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)

5+ Year Member



still nothing....does it matter what template you are using
5:20 pm on Aug 27, 2007 (gmt 0)

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

5+ Year Member



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)

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Good thought, iridiax.
7:03 pm on Aug 31, 2007 (gmt 0)

5+ Year Member



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)

5+ Year Member



Hello

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)

WebmasterWorld Senior Member 10+ Year Member



Am I missing something, I thought Wordpress didn't allow Adsense.
See their faq page:
[faq.wordpress.com...]
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)

WebmasterWorld Senior Member jimbeetle is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

<added>
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.
</added>

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

WebmasterWorld Senior Member 10+ Year Member



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)

5+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

5+ Year Member



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)

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month