Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How can I customize recaptcha themes?

nitin29nitin29 New
edited April 2012 in Vanilla 2.0 - 2.8

I want to customize the recaptcha to a different theme (as there are 4 different themes) but don't know how it could be done in Vanilla. More info is here:
https://developers.google.com/recaptcha/docs/customization

Tagged:

Best Answer

  • 422422 Developer MVP
    edited April 2012 Answer ✓

    In your default_master.php

    Add this code before <?php $this->RenderAsset('Head'); ?>

    < script type="text/javascript">
                 var RecaptchaOptions = {
                    theme : 'clean'
                 };
            </ script>
    

    Please note I have added space after < in the opening and closing script tags to post on here, ensure you do not have those spaces in your own code
    Change theme name to match the one you wish to use.

    ie.
    red

    white

    blackglass

    clean

    There was an error rendering this rich post.

Answers

  • 422422 Developer MVP

    Good find, i may have a play and create some.

    There was an error rendering this rich post.

  • 422422 Developer MVP
    edited April 2012 Answer ✓

    In your default_master.php

    Add this code before <?php $this->RenderAsset('Head'); ?>

    < script type="text/javascript">
                 var RecaptchaOptions = {
                    theme : 'clean'
                 };
            </ script>
    

    Please note I have added space after < in the opening and closing script tags to post on here, ensure you do not have those spaces in your own code
    Change theme name to match the one you wish to use.

    ie.
    red

    white

    blackglass

    clean

    There was an error rendering this rich post.

  • @422 your solution worked! :) Thank you very much!!!

  • where can I find default_master.php?
    I am not able to create a link with facebook, they've probably change the adress. Do you know the new one?

  • peregrineperegrine MVP
    edited December 2012

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.