• Resolved syp58htp

    (@syp58htp)


    After embedding the code into the text and pressing the “start” button, a blank screen appears

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Jasmine

    (@hyenokian)

    Dear @syp58htp,

    Thank you for the topic.

    Please provide us with the following information for further investigation of the case.

    1. The link where the given quiz is located.
    2. The Plugin, PHP and WordPress versions you are currently using.

    Looking forward to your response.

    Thank you.

    Thread Starter syp58htp

    (@syp58htp)

    Plugin Support Jasmine

    (@hyenokian)

    Dear @syp58htp,

    Thank you for your response.

    We are unsure of how you inserted ads into the quiz, but, please note, that the ads have made changes in the code of our plugin.
    The HTML code of the ads has been added?to such a place in a part of our code that it leads to the problem. Due to this, a blank page is displayed for you.

    I want to mention, that we don’t have a special integration with Google Ads.
    By?the?way, you can make use of?the?AdvancedAds?plugin?and embed?ads?into a Quiz.
    Please check out this link which I assume can be of great help to you:
    https://wpadvancedads.com/quiz-ads/

    Please check this and let us know if you have any questions.

    Thank you.

    Thread Starter syp58htp

    (@syp58htp)

    Thank you so much. And how can I remove the AdSense code from the plugin?

    Plugin Support Jasmine

    (@hyenokian)

    Dear @syp58htp,

    Thank you for your response.

    If you have inserted the ads via Site Kit by Google, then, please add the following script on the pages where the quiz is inserted:

    <script> (adsbygoogle = window.adsbygoogle || []).push({ params: { google_ad_modifications: { overlays: { exclude: ['.ays-quiz-wrap'] } } } }); </script>

    Also, you can check this link which?may be of great help to you:
    https://www.ads-software.com/support/topic/site-kit-by-google-plugin-ad-placement-issues/

    Please check this and let us know out the outcome.

    Thank you.

    • This reply was modified 3 weeks, 4 days ago by Jasmine.
    Thread Starter syp58htp

    (@syp58htp)

    “I think I pasted the AdSense code into the “text” section instead of the “visual” section while writing the question. In this case, which file of the plugin can I find the AdSense code in?”

    Plugin Support Jasmine

    (@hyenokian)

    Dear @syp58htp,

    Thank you for your response.

    If you are unable to find the file location, please take the following code and insert it at the end of the functions.php file of your Theme.

    Here is the code:

    function add_adsbygoogle_exclusion() {
    ?>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({
    params: {
    google_ad_modifications: {
    overlays: {
    exclude: ['.ays-quiz-wrap']
    }
    }
    }
    });
    </script>
    <?php
    } add_action('wp_head', 'add_adsbygoogle_exclusion');

    See the screenshot below:

    Please check this and let us know if you have any further questions.

    Thank you.

    Thread Starter syp58htp

    (@syp58htp)

    “I added the code, but when I press the “start” button, it looks like this. The test questions are not showing up.”

    View post on imgur.com

    Plugin Support Jasmine

    (@hyenokian)

    Dear @syp58htp,

    Thank you for your reply.

    Please, add the following script in the previously-mentioned part:

    function add_adsbygoogle_exclusion() {
    ?>
    <script>
    var quizContainer = document.querySelector('.ays-quiz-container');
    if (quizContainer) {
    var autoPlacedDivs = quizContainer.querySelectorAll('div.google-auto-placed');
    autoPlacedDivs.forEach(div => {
    div.remove();
    });
    }
    </script>
    <?php
    }
    add_action('wp_head', 'add_adsbygoogle_exclusion');

    We have checked the given case and were able to achieve the needed result on our end.

    In case of facing the same issue again, please make sure you are adding the script in the convenient place. Also, if possible provide us with the short video where we can see all the steps you take to add the script.

    Please, check again and let us know about the outcome.

    Thank you.

    Thread Starter syp58htp

    (@syp58htp)

    View post on imgur.com

    I add the code as in the video, but the error continues.

    Plugin Support Jasmine

    (@hyenokian)

    Dear @syp58htp,

    Thank you for the provided video.

    Please contact us via?this form?for further investigation of the case.?We will need to ask you for more information so that we can fully check the case.

    Our Support Team along with the Dev Team are ready to check the case and provide a solution accordingly as soon as possible.

    Thank you.

    Plugin Support Jasmine

    (@hyenokian)

    For other readers, we are closing the ticket as the customer contacted us via email and we provided a solution for the case accordingly.

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.