Adsense skyscraper not showing in sidebar
I’m still in the process of customising the Graphene theme for my blog, and I must say I love it. Thanks to all the hard work that’s gone into developing this theme.
That said, I have another glitch. I’ve successfully put Adsense into the blog, now I’d like to also add an Adsense skyscraper in the far right sidebar. Got the Adsense code, copied it into a Text widget. Placed widget in said sidebar.
Now the skyscraper shows, but instead of google adsense content, I have it filled with a ‘this page cannot be displayed’ message.
Anyone any ideas?
Site is http://www.weightlossladder.com
Do you already have a child theme setup? I don’t see one currently being loaded on your site.
Hi I’m a bit confused about all this.
A friend has created a graphene-child sub folder within themes, and uploaded a styles.css file and copied and pasted from the post you linked to (and changed some of the parameters).
We haven’t activated anything yet (a bit worried in case of problems). What do we do next and where can we get code to limit the Adsense ads to 2 per page?
Go ahead and activate that child theme first. If your child theme has been correctly setup, the assigned Custom Menu will be reset, as will the custom header and background. This is standard WordPress behaviour, so just go ahead and reconfigure your Custom Menu and custom header and background. Everything else should remain the same.
Post back here when you’ve done the above.
You won’t lose anything from activating a child-theme. If you turn it off, then the site’s appearance will go back to the way it was.Admin
Okay, now create a
functions.phpfile inside your child theme’s folder. Then add this code into that file:
add_filter( 'graphene_adsense_ads_limit', 'graphene_custom_adsense_limit' );
That will limit the in-between posts adsense ads to just 2, leaving 1 more ad available for your sidebar.
You must be logged in to reply to this topic.