1.7.3 Adsense Stopped Showing in Header on Home Page
-
I think I fixed it but I’m not sure – it started working a few minutes ago.
I was trying to do something else so this was a total fluke!
I was installing a “Like” button from Facebook. I went to my Facebook page and created a Like button, and then copied the code into Graphene Options in the box for Social Sharing Options.
The code came in two parts – Facebook said to place the first piece after the Open command in the body of my website. At first I didn’t know how to do that so I just skipped the first part of the code.
The second part of the code that Facebook gave me they said to paste where I wanted the Like button to appear. I wanted it to appear at the bottom of every post, so I pasted that 2nd part of code into the Graphene box for Social Sharing. Nothing happened.
I figured that the first part of the code was necessary then, but still not understanding where to put it, I just guessed and I pasted it ALSO in the Graphene Social Sharing box. I pasted it in first, with the second code still there but beneath it.
After waiting a minute, suddenly the Like button DID appear under my posts AND the Adsense ad suddenly appeared on my Home page in the header area!
Here is the first part of the code from Facebook that did the trick:
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/all.js#xfbml=1”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
Do you understand why this code in the Social Sharing area made my Adsense ad show up in the Header on the Home page? I mean, if I have to keep a Facebook Like button there to make it work, that’s OK for now, but it shouldn’t be dependent on that, just in case some day I want to remove the Facebook button or there’s a problem with Facebook or something. : )
Update: I removed the Facebook “Like” button (2nd part of code not shown here), left the first part of the code (as above) there, and the Adsense is still working, also on my parents’ Mac computers!
For some reason, that first part of the code (in my last post), placed in the Social Sharing area of Graphene is doing the trick!
Maybe you could incorporate that code or something like it in the next update of Graphene so there won’t be any more problems with Adsense!
Thanks,
Valerie
- You must be logged in to reply to this topic.
