• Hello,

    I cannot put an ad on center position and hope that someone could help me out.
    I am using General > Ads > Plain Text / HTML / JS and selecting center as a Layout.

    Also the ad is responsive as shown below.

    <script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXX&#8221;
    crossorigin=”anonymous”></script>
    <style>
    .eyecatch_responsive { width:300px; height: 50px;}
    @media(min-width:641px) { .eyecatch_responsive { width: 336px; height: 280px; } }
    @media(min-width:729px) { .eyecatch_responsive { width: 728px; height: 90px; } }
    @media(min-width:801px) { .eyecatch_responsive { width: 336px; height: 280px; } }
    @media(min-width:1135px) { .eyecatch_responsive { width: 728px; height: 90px; } }
    </style>
    <ins class=”adsbygoogle eyecatch_responsive”
    style=”display:block”
    data-ad-client=”ca-pub-XXXXXXXXXXXX”
    data-ad-slot=”XXXXXXXX”>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support WPQuads Support

    (@wpquadssupport)

    Can you please share the WP QUADS dashboard setup screenshots once? So that we will inspect and get back to you accordingly.

    Thread Starter nicolenanw

    (@nicolenanw)

    Hello,

    Thanks for your reply!
    I’m sorry but I’m not sure how to share screenshots here…

    Could you please teach me how to do that?

    Plugin Support WPQuads Support

    (@wpquadssupport)

    You can share them as google drive shareable links or there are some sources to take screenshots and get links in google. Kindly take and share, So that we will go through it and get back to you immediately.

    Thread Starter nicolenanw

    (@nicolenanw)

    I got it!
    You can downloads the screenshots here.

    https://drive.google.com/drive/folders/1f84bD0JTLP5CbI_dhx-zVda2aR55KyTP?usp=sharing

    This happens with only Ad8(shown in the screenshots) which is responsive.
    Other ads are fixed size and don’t have this problem.

    Also, to do lazy loading of adsense, I have deleted the first “<script>….</script>” codes of the adsense and added these codes below before </body>.
    I don’t know if it’s related though.

    <script>
    //<![CDATA[
    //lazy load ads
    var lazyloadads = false;
    window.addEventListener(“scroll”, function() {
    if ((document.documentElement.scrollTop != 0 && lazyloadads === false) || (document.body.scrollTop != 0 && lazyloadads === false)) {

    (function() {
    var ad = document.createElement(‘script’);
    ad.type = ‘text/javascript’;
    ad.async = true;
    ad.src = ‘https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&#8217;;
    var sc = document.getElementsByTagName(‘script’)[0];
    sc.parentNode.insertBefore(ad, sc);
    })();

    lazyloadads = true;
    }
    }, true)
    //]]>
    </script>`

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Thanks for sharing the info, will you please create a small video or explain to us step by step to recreate the issue you are facing so that we can check the same and come up with a solution?

    Thread Starter nicolenanw

    (@nicolenanw)

    Hi, I took some videos so please have a look.

    https://drive.google.com/drive/folders/1f84bD0JTLP5CbI_dhx-zVda2aR55KyTP?usp=sharing

    You will find 3 videos as below.

    1. wp-quads-1.webm : Adding an ad to wpquads
    2. ad-lazy-load.webm : Adding codes for lazy loading to space before </body>
    3. ad-position.webm : Showing how add is positioned in a post

    Thanks for your assistance!

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Thanks for sharing in detail. We will recreate this at our end and we will get back to you soon.

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Sorry for the delay in getting back to you. Can you please check once if is there any conflict? Can you please check once by deactivating the active plugins one by one on your site and let us know back if there is any conflict?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘“Layout: center” does not work’ is closed to new replies.