• I’m using the Twenty Twenty-Three WordPress Theme on my page and face some issues with the CAPTCHA. Potential subscribers are not able to complete it since this is what the page looks like. The CAPTCHA seems to not load properly.

    Online I found this support article from MailPoet themselves. It tells me to check the theme’s files and remove any empty first lines. However, since twenty twenty-three is a block template, there’s no functions.php I could remove the first line from.

    I’d be very glad for any tips. Google reCAPTCHA unfortunately is not an option for us. Thanks and have a great weekend!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @asvpeter ,

    Thank you for reaching out to us.

    If you’re unable to find the functions.php file in your theme, you can try adding the following code to your child theme’s functions.php file (if you have one) or to a custom plugin:

    function remove_empty_lines_from_script_tags($content) {
        $pattern = "/(<script.*?>)([\s]*)(<\/script>)/";
        $replace = "$1$3";
        $content = preg_replace($pattern, $replace, $content);
        return $content;
    }
    add_filter('wp_head', 'remove_empty_lines_from_script_tags');
    

    This code will remove any empty lines from the script tags in the head section of your website, which may be causing the issue with the CAPTCHA not loading properly.

    If you don’t have a child theme or custom plugin, you can create one by following these steps:

    1. Create a new folder in the wp-content/plugins directory, and name it something relevant to your project (e.g. my-custom-plugin).
    2. Create a new PHP file in the folder, and name it something like my-custom-plugin.php.
    3. Add the code snippet above to the PHP file.
    4. Activate the plugin in the WordPress admin area.

    After activating the custom plugin, check if the CAPTCHA issue is resolved. If not, kindly let us know and we’d troubleshoot this further.

    Have a great day.

    Thread Starter asvpeter

    (@asvpeter)

    Hi @geraltrivia!

    I followed the steps you gave me but still encounter the same problem. The CAPTCHA won’t load.

    Any other tips?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Built-in CAPTCHA not working’ is closed to new replies.