• Resolved liyolunun

    (@liyolunun)


    Hi! I updated my WordPress site and occasionally noticed that now I have duplicated captcha in all google forms on the site.
    how it’s look on the site (image)
    custom options in the plugin (image)
    options in google forms (image)
    In Chrome developer tools console (f12) I have duplicated strings
    <div class="wpgform-captcha" style="display: block;"><div class="ss-item ss-item-required ss-text wpgform-dontsplit"><div class="ss-form-entry"><label for="wpgform-captcha" class="ss-q-title">What is 4 + 3 ?<span class="ss-required-asterisk">*</span></label><label for="wpgform-captcha" class="ss-q-help"></label><br><input style="width: 100px;" type="text" id="wpgform-captcha" class="ss-q-short wpgform-required" value="" name="wpgform-captcha"></div></div></div>

    Could you help me resolve this, please?

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    If you are seeing the Captcha duplicated, I suspect if you look at the HTML source for your page where the form resides, you’ll see all of the Javascript the plugin generates to augment the form also appears twice. It will be down towards the bottom of the HTML source code.

    The Captcha appears twice because of the duplicated Javascript and each chunk of Javascript runs when the page loads. The real problem is why the JavaScript is being generated more than once.

    The Javascript generation is triggered by the wp_footer hook. More than likely either your theme or another plugin is forcing a call to wp_footer instead of letting WordPress handle it automatically.

    The easiest way to track this down is to temporarily disable all plugins except WordPress Google Forms and see if the problem persists. If it doesn’t start enabling plugins one at a time until the problem returns. You’ll isolate the offending plugin this way.

    If none of the plugins are the problem, try doing something similar with your theme. Temporarily switch to one of the WordPress supplied themes and see if the problem persists. I’d be surprised if it does.

Viewing 1 replies (of 1 total)
  • The topic ‘Why duplicated captcha in google forms on the site?’ is closed to new replies.