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?
nitin29
New
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:
0
Best Answer
-
422 MVP
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.
redwhite
blackglass
clean
There was an error rendering this rich post.
4
Answers
Good find, i may have a play and create some.
There was an error rendering this rich post.
In your default_master.php
Add this code before <?php $this->RenderAsset('Head'); ?>
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?
http://www.google.com/search?&q=site:vanillaforums.org+default.master.php
http://vanillaforums.org/search?Search=default.master.php
as well as theme tutorial and documentation.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.