• Resolved tarayfg

    (@tarayfg)


    The form works perfectly on desktop but not on mobile – once you have entered the reCAPTCHA details, it covers the ‘Enter Competition’ button in mobile view.

    I have had to remove the reCAPTCHA for now as it is stopping people entering the competition when in mobile view.

    Has anyone else experienced this?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @tarayfg,

    No one else has reported this issue but I understand what you’re saying. Because themes and styles vary so much from site to site it’s hard for me to test this on my own. Would you mind setting up a password protected page (or any page/post that is not easily accessed on your site) and putting the form with the captcha on there? That way I can access it on mobile, view the issue, and hopefully provide custom CSS that can tweak the styles and make it usable on mobile.

    You can enable/disable the reCAPTCHA via the shortcode – that way you can enable it on the ‘private’ form while keeping it off of the current/public form. The shortcode attribute is captcha="0" to disable it.

    Let me know if you can do that.

    Cheers,
    Kevin.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    🏳️‍🌈 YIKES, Inc. Co-Owner

    Hi @tarayfg,

    Are you able to put the form with the captcha on a test page so we can check it out?

    Thank you,
    -Tracy

    Thread Starter tarayfg

    (@tarayfg)

    Hi @liljimmi please now see the form with the captcha switched on – the issues is when you try to use this form when on a mobile device:

    https://yorkshirefoodguide.co.uk/blog/park-restaurant-york-menu/

    Many thanks in advance for taking a look at this.

    • This reply was modified 6 years, 7 months ago by tarayfg.
    Plugin Contributor Tracy Levesque

    (@liljimmi)

    🏳️‍🌈 YIKES, Inc. Co-Owner

    Hi @tarayfg,

    I tried the form out on my phone and the captcha doesn’t cover the button for me after I check it off.

    https://cloudup.com/i9WT4DoDdsb

    Do you know specifically what device you are experiencing the problem on?

    Thank you!
    -Tracy

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    🏳️‍🌈 YIKES, Inc. Co-Owner

    Hi @tarayfg,

    I figured it out!

    The recaptcha is in an iframe and your theme is defining a height on iframes that is a lot taller than the recaptcha box. It does it even worse on desktop, but the button is so wide there is still a large clickable portion (try clicking the left end of the button).

    This CSS code should fix it for you on all screen widths:

    .singlePostWrap .g-recaptcha iframe {
        height: 76px;
    }

    You have a few options to add CSS code:

    • If you’re using WordPress 4.7 or higher, you can go to Appearance > Customize > Additional CSS and place the code there.
    • If you created this theme yourself, you can just add it to your style.css file
    • If you’re using a theme you downloaded or bought you can make a child theme and add the code to your child theme’s style.css file
    • Your theme may have a “Custom CSS” option. If it does, then you can just pop it in there.
    • You can use a plugin like Simple Custom CSS or Jetpack and enter the code in their Custom CSS area

    Thank you!
    -Tracy

    Thread Starter tarayfg

    (@tarayfg)

    Hi @liljimmi sorry for the late reply. Thanks so much for looking into this for me the CSS code did the trick! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘reCAPTCHA problem on mobile’ is closed to new replies.