Blog
News, updates, guides, tutorials and some other things..
Adsense and Chrome issues
- This topic has 4 replies, 2 voices, and was last updated 3 years, 7 months ago by
Ivan.
- AuthorPosts
- July 29, 2017 at 3:31 pm#4339
Ivan
GuestHello, awesome theme! My problem is that on single-post page the footer is adding additional white spaces at the end, this only happens on latest Chrome (Version 60.0.3112.78 (Official Build) (64-bi)). My other problem is Google Adsense, I insert adds (using Advanced Ads plugin) at the end of every post, sadly the place where the add is placed is inheriting different size on the <iframe> my add is 728×90 but when I insert it the iframe becomes 728×300, which blocks all hyperlinks below the add.
Link example at the end of the post, you cannot click on next page or next post unless you are of the iframe limit size.
July 31, 2017 at 4:33 pm#4340Ivan
GuestI’ve managed to fix the Chrome and footer issue. The problem was on my end when I forked the theme. But I still have problems with Adsense, the banner is using more space than needed if I insert the ads in the end of the post/page. I cannot even click on next page if I enable the ad. Thanks for the help in advance. 🙂
July 31, 2017 at 7:43 pm#4341Linesh Jose
KeymasterHi, add this css
/* Fix blank space in footer */
.lwa {
margin-bottom: 0px !important;;
}/* Fix Adsense issue */
ins iframe{
min-height: initial !important;
}August 3, 2017 at 12:55 pm#4345Ivan
GuestThanks! This worked like a charm, do you know if the theme is compatible with W3 Total Cache, I have enabled with js/css manual minify, but sadly 1 plugin refuses to work (cookie consent). Thanks for the help Linesh Jose.
August 3, 2017 at 1:11 pm#4346Ivan
GuestI think there is a problem with the file :
wp-content/themes/wordstar/assets/js/html5.js
This is the JS console error code:
(jQuery);;;(function(window,document){var version='3.7.3';var options=window.html5||{};var reSkip=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var saveClones=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;var supportsHtml5Styles;var expando='_html5shiv';var expanID=0;var expandoData={};var supportsUnknownElements;(function(){try{var a=document.createElement('a');a.innerHTML='<xyz></xyz>';supportsHtml5Styles=('hidden'in a);supportsUnknownElements=a.childNodes.length==1||(function(){(document.createElement)('a');var frag=document.createDocumentFragment();return(typeof frag.cloneNode=='undefined'||typeof frag.createDocumentFragment=='undefined'||typeof frag.createElement=='undefined');}());}catch(e){supportsHtml5Styles=true;supportsUnknownElements=true;}}());function addStyleSheet(ownerDocument,cssText){var p=ownerDocument.createElement('p'),parent=ownerDocument.getElementsByTagName('head')[0]||ownerDocument.documentElement;p.innerHTML='x<style>'+cssText+'</style>';return parent.insertBefore(p.lastChild,parent.firstChild);}
Error in console: Uncaught ReferenceError: jQuery is not defined
This happens if I minify the file using W3 Total Cache.
- AuthorPosts
Share this:
- Click to share on Facebook (Opens in new window)
- Click to share on Twitter (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on Reddit (Opens in new window)
- Click to share on Pocket (Opens in new window)
- Click to email this to a friend (Opens in new window)
- Click to share on Telegram (Opens in new window)
- Click to share on WhatsApp (Opens in new window)
- Click to share on Skype (Opens in new window)
- Click to print (Opens in new window)