WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Google AdSense

Google AdSense showcases Google ads on your blog, with full customization.

How can I control the appearance of the ad blocks using CSS?

All <div>s that Google AdSense creates have the class attribute google-adsense. Furthermore, they have class attributes like google-adsense-top, google-adsense-bottom etc., You can set the style for these classes in your theme style.css to control their appearance.

Why does my code disappear when I switch to a new theme?

Google AdSense stores the ad code and options in your database indexed by the theme name, so that if you set up the options for a particular theme, they persist even when you switch to another theme. If you ever switch back to an old theme, all your options will be reused without your worrying about it.

But this unfortunately means that you do have to set the code once whenever you switch to a new theme.

Can I control how the ad blocks are formatted in each page?

Yes! In Google AdSense, you have more options [through custom fields] to control ad blocks in individual posts/pages. Add custom fields with keys like google-adsense-top, google-adsense-middle, google-adsense-bottom and with values like left, right, center or no to have control how the ad blocks show up in each post or page. The value "no" suppresses all the ad blocks in the post or page for that provider.

How do I report a bug or ask a question?

Please report any problems, and share your thoughts and comments at the plugin forum at WordPress Or contact me.

If you have a question or comment about the Pro version, please do not use the forum hosted at WordPress.org, but contact the plugin author using our support portal.

Requires: 3.2 or higher
Compatible up to: 3.9.2
Last Updated: 2014-7-17
Downloads: 50,238

Ratings

3 stars
3.2 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0
0,1,0