No more Google AdSense plugin for WordPress + yellow background color on responsive ads

Not too long ago, I received an email from Google AdSense stating they are dropping their plugin for WordPress. Within the email, they provided two options in placing AdSense ads into WordPress sans the Google plugin. I was able to apply both methods to my site. I made a quick tutorial on how I did it. Check it out.

I encountered a problem with the responsive ads that were generated. If the ad chosen by Google was smaller than the size of the container, a bit of yellow shows. I figured I’d tweak the code generated by Google by adding "background-color:transparent" setting to the style attribute. I decided to go inline instead of tweaking the style sheet. My logic is: if I decide to change my theme, the inline code should stay the same, whereas, the external style sheet will update with the theme.

2 thoughts on “No more Google AdSense plugin for WordPress + yellow background color on responsive ads

  1. Pingback: URL

  2. Libi

    I need help. It has been a few months since I’ve upgraded my website from personal to premium. Ever since I’ve put my ads and followed each procedure in the text widget but all it shows is the google adsense code itself; no blank screen or anything else. Could you help me?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *