• Resolved DerHerrMeier

    (@derherrmeier)


    Hi and thanks for the plugin.

    I have an image on a quiz (watu quiz) result page I want to make shareable. On desktop it works fine, but on mobile there′s no share-button. It′s not hidden; the whole <div id=”sti-mobile-btn-1″.. is missing.

    I tested on an image on a regular page and there it works, #sti-mobile-btn-1 is located right under the <img> tag.

    The only difference I could see in the html – compared to the image on the regular page – is that the watu quiz editor wraps the image in <p>-tags. Is that a problem??

    Thanks in advance for help.

    Uli

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Can you give me a link to this quiz page? Also- please show me a screenshot of the Display Rules option tab from the plugin settings page?

    Regards

    Thread Starter DerHerrMeier

    (@derherrmeier)

    Hi,

    here′s a test quiz: https://djs-online.de/news-quiz-test/
    (Only one question, just click “Absenden”)

    Screenshot:

    Thanks & regards

    Plugin Author ILLID

    (@mihail-barinov)

    Please try to use following custom code snippet:

    add_action( 'wp_enqueue_scripts', 'sti_wp_enqueue_scripts2', 9999999 );
    function sti_wp_enqueue_scripts2() {
        $script = "
             var timeoutID;
             jQuery('body').on('DOMSubtreeModified', '#watu_quiz', function() {
                window.clearTimeout(timeoutID);
                timeoutID = window.setTimeout( function() {
                     jQuery(sti_vars.selector).sti();
                }, 1000 );
           });
        ";
        wp_add_inline_script( 'sti-script', $script);
    }
    Thread Starter DerHerrMeier

    (@derherrmeier)

    Hi Mihail, thanks a bunch, that did the trick! ??

    Best regards

    Uli

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