Hi.. On the site of my client there are two Contact Forms made with CF7. These forms does not works on mobile because there is present in both an “add file” control..
The solution may be adding the following filter in functions.php “add_filter( ‘wpcf7_load_js’, ‘__return_false’ );” I’ve tried but it does not works..
Where is the correct place to add the line in functions.php..?
Thanks
Hey newmediologo,
You could try that code at the very bottom of your functions.php file. We cannot provide support for third party plugins like Contact Form 7 though.
Best regards,
Rikard
Thanks Rikard, the question was were tu put the code.. Thanks
Hi,
Yes, please try it at the very bottom of your functions.php file :-)
Best regards,
Rikard
Thanks Rikard I’ve tried but it does not works..
Hi,
Thanks for the feedback, though like I pointed out, we’re unable to give you any detailed support for CF7. If the file upload functionality is the problem though, then maybe you could create separate forms to show for mobile only?
Best regards,
Rikard
May be an idea Rikard but I don’t know how..:)
Hi,
If you add both contact forms on a page and post a link to it then I think we can help you out with some custom CSS.
Best regards,
Rikard
May be I can try to add a contact form in a text block then go to Screen Options and hide it on large screen and hide the main form on mobile screens..?
Hi @Rikard.. This solution works.. The main Contact Form visible only from desktop and hide on mobile and the copy without the “Send File” control visible only from mobile and hide on desktops.. Thanks to the wonderful functions of Enfold
Hi,
Great, glad you found a solution :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Thanks Rikard.. I think it’s ok for now..:)