recaptcha icon indicating copy to clipboard operation
recaptcha copied to clipboard

Not generating the html custom template code when the custom display option is provided

Open dlamichhane opened this issue 10 years ago • 2 comments

I provided the theme option as 'custom', but it didn't generated the custom html code.

recaptcha_tags display: {theme: 'custom', custom_theme_widget: 'recaptcha_widget', lang: 'de' }

In order to generate the custom code i have used the below custom html code with above 'recaptcha_tags'. For eg like this

= recaptcha_tags display: {theme: 'custom', custom_theme_widget: 'recaptcha_widget', lang: 'de' }
#recaptcha_widget{style: 'display: none'}
  #recaptcha_image
  .recaptcha_only_if_incorrect_sol{style: 'color: red'} Incorrect
  .recaptcha_only_if_image Enter words
  .recaptcha_onlf_if_radio Enter numbers
  %input#recaptcha_response_field{name: 'recaptcha_response_field'}
  %a{href: 'javascript:Recaptcha.reload()'} Another captcha
  .recaptcha_only_if_image
    %a{href: 'javascript:Recaptcha.switch_type("audio")'} Get audio captcha
  .recaptcha_only_if_audio
    %a{href: 'javascript:Recaptcha.switch_type("image")'} Get image captcha
  %a{help: 'javascript:Recaptcha.showhelp()'} Help

Is this the correct way of doing or am I missing something with the recaptcha_tags?

dlamichhane avatar Aug 13 '14 10:08 dlamichhane

Isn't the custom theme just for CSS styling? I didn't realize you could provide your own HTML markup. If this is a new feature of ReCAPTCHA, I'm not aware of it.

ambethia avatar Aug 25 '14 22:08 ambethia

In this doc ( https://developers.google.com/recaptcha/docs/customization ), take a look "Custom Theming" section

dlamichhane avatar Aug 26 '14 07:08 dlamichhane