Apr 19 2008
Integrating Google AdSense and WordPress without a plugin
I was using Martin Fitzpatrick’s excellent plugin called AdSense Manager to handle Google ads on my blog. Version 2.x worked well but version 3.x stopped working properly with sidebar widgets and the admin interface failed to commit certain page changes.
My quest to find a solution was unsuccessful so I trashed the plugin and looked for an alternative. Other WordPress plugins looked weak in comparison so I went old-school and within 15 minutes I had a working replacement using a few lines of PHP and JavaScript code from Google. While it’s not as convenient as a plugin, it works fine with sidebar widgets.
Thanks to tamba2’s excellent (and brief) how-to guide.
Related posts:
- Credits
- Blog from Nokia’s Lifeblog to WordPress 2.3
- Making blogs (mobile) browser friendly
- Google goodness
- Will Google give us Visual Voicemail on Symbian?
