How to multiple class add on contact form 7 submit button
If I remember correctly, you need to add the class attribute to each one. Try this instead: [submit class:btn class:btn-main class:btn-lg “Send”]
If I remember correctly, you need to add the class attribute to each one. Try this instead: [submit class:btn class:btn-main class:btn-lg “Send”]
I faced the same problem and finally ending by using the wpcf7_form_elements filter to remove the <span> tag with a regex. You can for example copy-paste this code in your functions.phpfile. Here I pass an an anonymous function as a callback, so be sure to have PHP >= 5.3. add_filter(‘wpcf7_form_elements’, function($content) { $content = preg_replace(‘/<(span).*?class=”\s*(?:.*\s)?wpcf7-form-control-wrap(?:\s[^”]+)?\s*”[^\>]*>(.*)<\/\1>/i’, … Read more
In version 3.3 new jQuery custom event triggers were introduced: New: Introduce 5 new jQuery custom event triggers wpcf7:invalid wpcf7:spam wpcf7:mailsent wpcf7:mailfailed wpcf7:submit You can use wpcf7:invalid like the example below: $(“.wpcf7”).on(‘wpcf7:invalid’, function(event){ // Your code here });
Even though this question is more than 5yrs old, it is still active regularly, and like me many of us trying to get a clear answer to this question. You can also type 10x for cols and x2 for rows if you want to have only one attribute. [textarea* your-message x3 class:form-control] <!– only rows … Read more
If editing wp-config.php is not the solution for you, there’s a handy filter. Put it in your functions.php: // Remove <p> and <br/> from Contact Form 7 add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);