Site logo

Archived topic

light form

15 replies · Started by Thomas on July 28, 2021

Viewing posts 1–15 of 16

Hi guys,
i am using the search theme from generatepress which is nice but the form this theme is using is happyforms where there is no free option for add google recaptcha, they charge nearly 50 Euros for that which is a lot from my point of view.

Which other light form plugin can you recommend where recaptcha or similar is available for free?
Is contact from 7 fast or does it slow down the website?

thanks a lot for your kind help

You can easily remove the additional requests from all pages but the contact page like this:

add_action( 'wp_print_scripts', 'deregister_cf7_javascript', 100 );
function deregister_cf7_javascript() {
    if ( !is_page(array(42)) ) {
        wp_deregister_script( 'contact-form-7' );
    }
}
add_action( 'wp_print_styles', 'deregister_cf7_styles', 100 );
function deregister_cf7_styles() {
    if ( !is_page(array(42)) ) {
        wp_deregister_style( 'contact-form-7' );
    }	
}

CF7 should have not any impact on performance, if you remove the requests. However, most Google services HAVE impact on page load. I wouldn't use it, if you're not located in the US. It usually slows down a site significantly.

Hi,
thanks a lot for your kind answer.
Is there another option then google services for prevent spam?

Honestly, I use the good old Quiz. Yeah, it seems from ancient times. But it is simple, it works, and it does not send any user data to Google. There are a few other options like Honeypot. But I found this not to be very good. And it does not need a plugin to work. Which is for me a very strong point. I avoid plugins for such specific tasks. Plugins load JS and CSS which might impact performance.

Thanks for the support @mkjj :)

Your welcome. The least I can do is to give something back for the great support you provide.

:)

Hi @mkjj
thanks a lot for your kind help.
May i ask what is the quiz
i googled and found only wordpress plugins but you recommend a quiz without a plugin.
Can you give me a hint how to do it?

thanks a lot

Hi Thomas,
the quiz is a built-in feature of CF7. It's just a fancy word for a question that the user has to answer: 1+2=? You can build it like the other elements of the contact form in the CF7 editor. It's super easy. It doesn't exactly feel modern or trendy, and it is probably not a good idea to ask for your mother's maiden name. But it gets the job done.

I wouldn't use CF7 without some kind of protection. The system can be used so send spam through your server. I'm not an expert, and I don't fully understand the process. However, more than once my hosting company shut a contact page down due to massive spam. They asked me politely to add some protection. So, you do need it.

Hi mkjj
thanks a lot for your kind answer and thanks for explaining it to me.
Now i understand and will implement your thoughts into my website.

great work and thanks for be patient with me

You're welcome.

hi there,

may i ask where to put the code in WP for remove additional request from cf 7

thanks again for your great help

hi there
thanks for your answer
so i have to add this to the functions.php of the child theme of generatepress right

thanks for your help

Yes. And you have to replace the ID (42) with the ID of you page(s). Separate IDs with a comma, if you need more than one page.

This archived topic is closed to new replies.