Support

Home Forums Themes & Templates WordStar Adsense and Chrome issues

Adsense and Chrome issues

This topic contains 4 replies, has 2 voices, and was last updated by  Ivan 4 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)

  • Author
    Posts
  • #4339 Reply

    Ivan

    Hello, 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.

    #4340 Reply

    Ivan

    I’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. 🙂

    #4341 Reply

    Linesh Jose
    Keymaster

    Hi, add this css

    /* Fix blank space in footer */
    .lwa {
    margin-bottom: 0px !important;;
    }

    /* Fix Adsense issue */
    ins iframe{
    min-height: initial !important;
    }

    #4345 Reply

    Ivan

    Thanks! 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.

    #4346 Reply

    Ivan

    I 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.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Adsense and Chrome issues
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">