Comment on SEO AdSense WordPress Theme by SEO Dave.
The main Ad ON/OFF options are designed for the built in AdSense code including what you add on the main Stallion AdSense Options page form boxes. If an ad is turned off on the main AdSense options page that ad isn’t loaded at all sitewide, there’s no settings for only show on tags or posts etc…
The screenshot below is almost how I have this site now, only difference is I recently disabled the footer widget to test something.
I created three Responsive Ad units in my AdSense account naming them stradunit1, stradunit2 and stradunit3 and pasted each one in the corresponding form as you see in the image below.
I’m using the W3 Total Cache plugin on this site and minify HTML, so the code output for the floating ad unit is minified, below is what my main content ad looks like when viewing source in FireFox:
<div class="fadright stallionhideads"> <ins class="adsbygoogle stradunit1" style="display:inline-block" data-ad-client="ca-pub-8325072546567078" data-ad-slot="2310085616"></ins><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></div>
If you don’t minify HTML it would be on more lines, but the same code.
You can see the div has two classes,
.fadright = Float Ad right
.stallionhideads = Stallion Hide Ads
The “stallionhideads” is how I first added the ability to hide Stallion ads (you had to add some inline CSS that used .stallionhideads to hide the ads), in later versions of Stallion I created a much better way to not hide the ads 9code lods, but is hidden: which is what you are seeing suggesting you’ve added the above CSS class), but not load them at all.
If you’ve added a CSS class .stallionhideads (and/or .stallionhidewads) and set display:none it would hide the ads. None of the built in Stallion CSS files use the .stallionhideads or .stallionhidewads so if you have that in a CSS file you must have added it and it could be the cause of why your ads are hidden.
These are the CSS ways to hide ads in older versions of Stallion, they still work in Stallion Responsive v8, if you have this code it might be the problem.
To hide all AdSense ads add:
<style>.stallionhideads, .stallionhidewads {display:none !important;}</style>
To hide the AdSense ads within the main content only (sidebar, header and footer ads will still be visible) add:
<style>.stallionhideads {display:none !important;}</style>
To hide the AdSense ads within the sidebar, header and footer areas (main content ads will still be visible) add:
<style>.stallionhidewads {display:none !important;}</style>
The above is not the best way to hide ads.
I’m not completely sure what you are trying to achieve, not sure what you mean by “appear on Tags and Comments pages”?
If by comments you mean the Stallion Super Comments that’s going to be more difficult without editing code (it’s probably easy to do), because the SEO super comments use the same settings as their main article. For example I’ve disabled AdSense (on that posts edit page by setting Disable All Ads to “All Ads Off”**) on How to cheat AdSense article (the top ad isn’t an ad, it’s just an image as a joke) check any of the SEO super comments for that post and they lack AdSense as well: https://stallion-theme.co.uk/adsense-click-exchange-how-to-cheat-google-adsense/?cid=942
Also set the AdSense widget using the Display Widget options (at the bottom of the widget: added the posts ID 154 to the “Comma Separated list of IDs of posts not listed above:” form) so the AdSense sidebar ad doesn’t load for any of those webpages. Didn’t want a search engine visitor looking for AdSense click exchanges clicking my AdSense ads!!!
So there’s not a built in way (via the main AdSense options) to only show AdSense on the SEO super comments only or only the tags.
** The Post/Page edit screen “All Ads Off” setting has no impact on your custom Text Widgets with Responsive AdSense ad code, the “All Ads Off” only has an impact on the Main content ad unit and the footer ad unit (unit 1 and unit 2: unit 3 is a widget and not affected by the setting).
To achieve what you want would require some planning.
If you wanted three AdSense content widgets with more control over placement to a degree where no ad unit is sitewide I’d start by turning AdSense off on the main Stallion Theme Options page and create three or more Text Widgets with the Responsive AdSense code from your AdSense account (similar to the code in my image above) and use the Display Widget options to set where those text widgets can load. If you use AdSense ads named stradunit1, stradunit2 and stradunit3 they can still use the built in AdSense CSS for responsiveness.
If you explain in detail which parts of the site you want AdSense on and where there’s probably an easy way with a small amount of code changes and mostly well thought out Widget Display settings.
David
More Comments by SEO Dave
AdSense Theme Options
AdSense Responsive Theme Code
Code doesn’t come through in WordPress unless you add code tags, so didn’t see your code, have pasted what it should look like to replace the messed up code.
If your code looks like that, should work. Must be exactly like …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Google AdSense Custom Search Widget
The Stallion Responsive 8.2 version of the Google AdSense Custom Search Widget is called “Stallion AdSense Google Search Widget”.
For performance reasons some of the Stallion widgets and default WordPress widgets are disabled. Basically if you don’t use a widget it’s …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
DED : You’ve Reached your Daily Relay Quota
Yep, Google changed a while ago to show users what they are searching for as ads. Can get quite irritating when doing research, shows me ads I have no interest in: not that I ever click AdSense ads on any …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
How to Remove Malware Ads
Had a look at the home page code and the code of a WordPress post and don’t see anything obvious untoward.
I see the correct AdSense ads when viewing your site, I saw some ads about roofing and others about SEO …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
AdSense Troubleshooting
Assuming you are running either Stallion Responsive or Stallion WordPress SEO.
Most times AdSense doesn’t work it’s because the user has inadvertently copy pasted additional characters (tabs or spaces) which breaks the code.
Check before and after for spaces, should only be:
pub-123456789
Assuming …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Adding HTML code to a WordPress Post
Have you viewed the HTML source of the AdSense output that’s not working and compared it to the original AdSense code?
This will tell you if it’s WordPress changing your HTML after saving.
Easy to do.
Add the responsive ad code that isn’t …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Adding Responsive AdSense Code to a WordPress Post
When you say adding a Responsive AdSense ad to a WordPress page do you mean editing a page template (one of the files ending .php) and manually adding the AdSense code where you want it?
Or editing a WordPress Page or …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Advanced AdSense Responsive Ad Units
I need to get more sleep apparently, managed to replicate your issue by using the Smart Sizing AdSense Responsive Ad Code.
Where ever I suggested using Smart Sizing AdSense Responsive, should be use Advanced AdSense Responsive ad units and delete the …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
Responsive AdSense Advanced Code
Edited comment to take into account completely getting it wrong, I advised using Smart Sizing should be use Advanced AdSense code with Stallion!
The difference between the two AdSense Responsive Ad Unit types is as follows, the two code examples are …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
AdSense Responsive adsbygoogle.js File
One possibility is you are using broken AdSense code.
The AdSense responsive code I use on this site lacks this code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Which means my AdSense ads code is broken (incomplete), but because Stallion Responsive includes the adsbygoogle.js code link it …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
AdSense Responsive Ad Units
Updated to take into account a brain fart, see later comment.
Sounds like you are using the widget area correctly.
I’ve just tested two scenarios that worked as expected (update: I was wrong).
On this website under “Appearance” >> “Widgets” made sure I …
Continue Reading Stallion AdSense Theme
AdSense Theme Options
AdSense Ad Unit Placement
Oh I see, you mean under “Stallion >> AdSense Options” setting “Main Content Ad Unit – Ad Unit 1” to “off” turns that AdSense ad unit off sitewide.
That’s what the setting is supposed to do.
Turn it back on and use …
Continue Reading Stallion AdSense Theme