Hi
i am trying to add recaptcha to my comments page to prevent loads of feedback spam. The plugin I installed says to add the shortcut to enable on the comments page [bws_google_captcha]
i have added this to the td_wp_editor field at the bottom (as I am using the theme forms for the comments page – but the recaptcha is not working
How do I add a shortcode to the forms page please?
Hi,
If this shortcode is from a plugin, then you can set it in the page using tagDiv Composer in -> https://i.imgur.com/PdlQCpw.png add the column text or text with title in text area -> https://i.imgur.com/dY3qluv.png -> https://imgur.com/CSPcls9
If this is not working, please provide some more details about the plugin and where and how you try to implement it.
Thank you!
Hi
The plugin is reCaptcha by BestWebSoft, although i am happy to use any.
I have added the code as you said and the recaptcha box is showing, but I can still submit messages without needing to click the recaptcha option?
Hi,
So in order to use the above reCaptcha with a custom form you need to use the steps from here -> https://i.imgur.com/roQR8uk.png -> https://wordpress.org/plugins/google-captcha/#add%20recaptcha%20plugin%20to%20a%20custom%20form%20on%20your%20wordpress%20website
Hope this will help you!
Thank you!
Hi, i added this to the bottom of the functions.php in the theme folder, but still does not require recaptcha before submitting? Im assuming “contact-us” is the form name (page name)?
function add_custom_recaptcha_forms( $forms ) {
$forms[‘my_custom_form’] = array( “form_name” => “contact-us” );
return $forms;
}
add_filter( ‘gglcptch_add_custom_form’, ‘add_custom_recaptcha_forms’ );
Hi chicky365,
Our theme has more functions.php file please make sue that you set the code in these files:
-> wp-content/plugins/td-standard-pack/Newspaper/functions.php
-> wp-content/plugins/td-composer/legacy/Newspaper/functions.php
Also you can set this file in a child theme -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Hope this will help you!
Thank you!
Hi
I tried copying the code into both functions.php, but on both occasions it caused the site to crash with a fatal error, so I had to remove it again
Fatal error: Cannot redeclare add_custom_recaptcha_forms() (previously declared in /www1/acd/www.kentnews.online/web/wp-content/themes/Newspaper/functions.php:442) in /www1/acd/www.kentnews.online/web/wp-content/plugins/td-composer/legacy/Newspaper/functions.php on line 96
There has been a critical error on your website.
Hi
Thank you for your answers.
As a wordpress theme publisher, I think this is an an area you really need to address, as spam is a big issue with WordPress. Many of your clients are struggling with the same problem, and with a publisher theme, some are reliant on comment feedback
Hi chicky365,
The think is that at this moment we can not test some many plugins with our theme, but we made a list where we add the most type of plugins that are use by our clients and to try to test some of theme with our theme. I add this one on that list.
Thank you for your understadning!