Comment on SEO AdSense WordPress Theme by SEO Dave.
The Stallion Theme Google Google Analytics code is due to be updated for the next release (Stallion 6.3, working on a few new features) to include this AdSense Analytics Code (ASAC) and other improvements (want to include all available Google Analytics code options).
It’s important the code is added above the other Google Analytics and AdSense code so I’ll be adding it in the header.php file, however it doesn’t have to go that high code wise, just as long as it’s above the AdSense and analytics code will be fine.
A short term solution that removes the need to edit template files before the Stallion update is use a Text widget as follows.
Appearance >> Widgets
Add a Text widget to the “Banner Ad Widget” widget area.
In the text widget main form add your code that looks like this:
<script type="text/javascript"> window.google_analytics_uacct = "UA-########-#"; </script>
You don’t have to make any changes to the Stallion Adsense code or the Stallion Google Analytics code, it’s needed as it is. If you aren’t using the Stallion Google Analytics feature and you use a stand alone Analytics plugin check where the plugin adds the code, it has to be below the code above. If a plugin adds the code to the head area the above won’t work (Stallion adds the analytics code to the footer area, so the above works).
When I update Stallion to 6.3 the above code will be built in, so all you’ll have to do is add your Google Analytics code like you do now to the Stallion options page and tick a box to indicate you want the AdSense code adding as well. When you update to Stallion 6.3 delete the text widget with the code above and tick the box :-)
Going to have to stop doing these multiple feature updates and do smaller updates so they are released quicker.
BTW if you do ever add code to the header.php file remember the header2.php file as well. The header2.php file is the header file for the Stallion SEO Super Comments pages, if you have that feature turned on and want some code added sitewide via the header.php file you need to repeat the edit with the header2.php file otherwise your Stallion SEO super Comments pages will lack the code.
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
Responsive AdSense Ad Units Placement
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 …
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