Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to multiple class add on contact form 7 submit button

When i add bootstrap button class, like..

[submit class:btn btn-main btn-lg "Send"] 

on browser i see it show only one class add.

<input class="wpcf7-form-control wpcf7-submit btn" > 

I need others 2 class add also Help Me..

like image 442
S. M. Momin Avatar asked Mar 01 '17 08:03

S. M. Momin


People also ask

How do I add multiple classes in Contact Form 7 fields?

In Contact Form 7's convention, all types of tags with an asterisk '*' mean that these are required fields. id attribute value of the input element. class attribute value of the input element. To set two or more classes, you can use multiple class: option, like [text your-text class:y2008 class:m01 class:d01] .

How do I stop multiple submits Contact Form 7?

php // Prevent Multi Submit on all WPCF7 forms add_action( 'wp_footer', 'prevent_cf7_multiple_emails' ); function prevent_cf7_multiple_emails() { ?> <script type="text/javascript"> var disableSubmit = false; jQuery('input. wpcf7-submit[type="submit"]'). click(function() { jQuery(':input[type="submit"]').

How do I display Contact Form 7 fields on two or more columns?

To use the plugin, go to Plugins->Add New, search for Contact Form 7 Shortcode Installer, install and activate the plugin. Column Shortcodes is a plugin which adds shortcodes to your WordPress website functionality for displaying content on multiple columns.

Where are Contact Form 7 submissions stored?

There's no additional setting up needed — the submissions you get through Contact Form 7 will be stored in the wp_posts database. If you want to see them, you can head over to the newly added Flamingo tab on your website's dashboard. There, you'll notice the “Address Book” and the “Inbound Messages” options.


2 Answers

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"] 
like image 75
Moris.io Avatar answered Oct 02 '22 06:10

Moris.io


Also CF7 used to have bug: if you put "class:" after "Send" nothing is added.

like image 38
Vishnja Avatar answered Oct 02 '22 07:10

Vishnja