Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Try going to Themes > Customise Theme > Theme Settings > General and then untick ‘Minify HTML code’.
    Seems to have fixed both issues for me.

    in reply to: Account sections do not load at all #23747

    Thanks Ryan, I found that out myself also.

    Very slack of the developers/team. They created a custom login/register page, a half finished My Account dashboard and then neglected all the other pages. Not impressed.

    This is caused by the theme’s minify HTML setting.
    The reCaptcha relies on a function written in the HTML

    The theme’s minify setting causes this entire function (below) to be commented out as all whitespace is removed by minify.
    This issue will, by default, effect all sites using this theme as the default setting is to minify the HTML.

    //<![CDATA[
       var recaptchaCallback = function() {
          grecaptcha.render(‘g-recaptcha’, {
          sitekey: “####”,
          size: (window.innerWidth > 320) ? ‘normal’ : ‘compact’,
          callback: ‘onCaptchaSuccess’,
       });
    };

    var onCaptchaSuccess = function() {
    var event;

    try {
       event = new Event(‘captchaSuccess’, {bubbles: true, cancelable: true});
    } catch (e) {
       event = document.createEvent(‘Event’);
       event.initEvent(‘captchaSuccess’, true, true);
    }

    window.dispatchEvent(event);
    }

    //]]>

Viewing 3 posts - 1 through 3 (of 3 total)