Comment on SEO AdSense WordPress Theme by Erik.
Update: Interestingly, the problem seems to just be with the “Smart sizing” responsive ad (the code you gave as an example above). Right before you save and copy code, Adsense gives two options for responsive unit code, their “recommended” Smart Sizing and Advanced which say “code modification required”.
I just created and tested an “Advanced” responsive ad, which requires modifying the ad size you wish displayed to the device width. The code it generates gives you 3 sizes: 1) width: 320px; 2) min-width: 500px, and 3) min-width: 800px. Each width has a suggested corresponding ad size/shape which you can change.
So this Advanced ad version seems to work fine in a Stallion text widget. So why the Smart Sizing responsive unit doesn’t work is still a mystery.
(As an aside, I am wondering if one version is preferable over the other; the Smart Sizing is obviously easier to set up, though you can control the type of ad you want displayed based on a given screen size using the Advanced units. Taking that further, I could see someone setting up the 160×600 skyscraper sidebar ad unit to become a large rectangular ad once it goes into responsive mode (below say min-width: 500px or 480px), since that sidebar ad drops to the bottom of the wider main content column. A 300×250 or 250×250 ad might fill that space below the main content more completely and neatly than the thinner 160px width skyscraper. Just thinking out loud :) )
Thanks,
Erik
More Comments by Erik
AdSense Theme Options
WordPress adding line breaks to Responsive Adsense Code
You were right Dave, thanks for this tip. I didn’t realize it would output something different than the code that is visible in Text view. I have seen WordPress change ad code before, but it was to add that …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Adsense Shortcode works, direct pasting does not
Now I’ve gotten it to work using the shortcode (a plugin called WP Adsense Insertion, you paste the code into an input box and just place a shortcode (eg, ) where you want it to appear) on the pages in …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Pasting responsive code directly into page via WP dashboard
I am just pasting the code directly into a page using my WordPress dashboard, the second scenario you describe.
I generally don’t use the Visual mode either, am doing everything in Text mode so it’s not the code being …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Displaying Adsense Responsive Code on an Individual Page
Thanks Dave for the help on this. I had one other basic question about simply placing individual responsive adsense code snippets on individual pages.
For some reason I can’t get the responsive ad code to display on single …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Responsive Adsense only on certain pages
Sorry Dave, I actually meant Tags and Categories pages–I had the Super Comments pages in mind as well, but I’ve got a separate ad code for that inserted in the single-2.php file which is how you advised me to do …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Responsive Adsense Unit Positioning
Hi Dave, I have hit a little hiccup in trying to position a responsive adsense unit in the floating content area.
It seems that if I set the Content Widget Area alignment to “No float” in Layout Options, the responsive …
Continue Reading Stallion AdSense Theme