CGBetterForms / Captcha - recapture div
Posted: Sat Aug 04, 2018 4:41 pm
I am using CGBetterForms with Captcha for my contact form.
I am using the recapture option for Captcha. I have my site key etc. But I cannot see how to add the 'data-size="compact"' attribute to the div that is subsequently generated.
I want the captcha div to be
<div class="g-recaptcha" data-sitekey="mysitekey" data-size="compact"></div>
but it is coming out as
<div class="g-recaptcha" data-sitekey="mysitekey"></div>
I do not want to change the source code in Captcha/plugins/recaptcha/cm_plugin.recaptcha.php which is where I think the code is coming from.
I tried copying this code to assets/module_custom/Captcha/plugins/recaptcha/cm_plugin.recaptcha.php and changing it there but it was ignored by CMSMS.
The reason for wanting to add this attribute is to make the Captcha thingy on the rendered form display better on small devices.
Any assistance appreciated. I am sure it is easy to do but cannot see wood for those pesky trees
BTW am loving the CGBetterForms and CMSMS version 2
I am using the recapture option for Captcha. I have my site key etc. But I cannot see how to add the 'data-size="compact"' attribute to the div that is subsequently generated.
I want the captcha div to be
<div class="g-recaptcha" data-sitekey="mysitekey" data-size="compact"></div>
but it is coming out as
<div class="g-recaptcha" data-sitekey="mysitekey"></div>
I do not want to change the source code in Captcha/plugins/recaptcha/cm_plugin.recaptcha.php which is where I think the code is coming from.
I tried copying this code to assets/module_custom/Captcha/plugins/recaptcha/cm_plugin.recaptcha.php and changing it there but it was ignored by CMSMS.
The reason for wanting to add this attribute is to make the Captcha thingy on the rendered form display better on small devices.
Any assistance appreciated. I am sure it is easy to do but cannot see wood for those pesky trees
BTW am loving the CGBetterForms and CMSMS version 2