S. M. Momin
S. M. Momin

Reputation: 449

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..

Upvotes: 38

Views: 79180

Answers (3)

Jen Bird
Jen Bird

Reputation: 41

Have also just discovered if you put classes after a placeholder it doesn't work for some reason but putting it before does:

[text* your-name class:ast-col-xs-12 class:ast-col-sm-12 class:ast-col-md-6 class:ast-col-lg-6 placeholder "e.g. Joe Bloggs"]

Upvotes: 4

Moris
Moris

Reputation: 3083

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"]

Upvotes: 89

Vyshnia
Vyshnia

Reputation: 628

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

Upvotes: 26

Related Questions