Adding recaptcha to contact form

Posted in: Newspaper
Post count: 141

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?

Post count: 35449

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!

Post count: 141

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?

https://www.kentnews.online/contact-us/

Post count: 35449

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!

Post count: 141

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’ );

Post count: 35449

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!

Post count: 141

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.

Post count: 35449

Hi,
I’m sorry, but since we do not tested any kind of these plugins we do not know if these are working or how need to be use in order to work with our theme.

Thank you for your understanding!

Post count: 141

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

Post count: 35449

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!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.