• Resolved briire

    (@briire)


    Hi there – fantastic, useful plugin!

    One question: How to customize the styling of the recaptcha element, particularly when used with Contact Form 7. I’ve gotten it integrated and it works perfectly, but I’d like to be able to control the size, spacing, alignment and colors. The wp-recaptcha-integration/css/recaptcha-options.css file is shown as inactive.

    You can see how this looks odd when it’s inflexible, by viewing my site’s contact form.

    Thanks much!
    -Brian

    https://www.ads-software.com/plugins/wp-recaptcha-integration/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor podpirate

    (@podpirate)

    Hi Brian,
    The only way to apply custom css is to enable the old style recaptcha with a custom theme through the options panel. It will output the same HTML as here: https://developers.google.com/recaptcha/old/docs/customization. (scroll to “Custom Theming”)
    Likely not the best choice from a user experience point of view…

    All the other ones are living inside an iframe, so your css will not affect their DOM elements and the css is loaded exclusively from google. wp-recaptcha-integration/css/recaptcha-options.css only some styles for the options page.

    regards,
    j?rn

    Thread Starter briire

    (@briire)

    Thanks so much, J?rn! Good to know. I just wish there was a way to control the margins around the iframe as it exists between my final form field (within Contact Form 7) and my ‘Submit’ button. Currently, it looks unevenly spaced (vertically AND horizontally) and strange. If there’s no fix, that’s okay – just wanted to ask!

    Also, this iframe wasn’t displaying properly in a mobile view of my responsive theme when being used as described above. Instead, it displayed the shortcode id # as text above the Contact Form 7 ‘Submit’ button, but no iframe/ReCaptcha. ??

    Thanks…

    Plugin Contributor podpirate

    (@podpirate)

    For nocaptcha there is a div with classname g-recaptcha wrapped around the iframe. If you apply margins and/or paddings to that element through custom css, it should work. You might try something like .g-recaptcha { margin:20px auto; }.

    Thread Starter briire

    (@briire)

    Thank you so much! I’ll give this a try.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Styling via CSS inactive?’ is closed to new replies.