K
K
kursof12021-08-09 19:24:53
WordPress
kursof1, 2021-08-09 19:24:53

How to add class to contact form7?

There is a code that output is already cf7 in the browser

<span class="wpcf7-form-control-wrap mkdf-s">
<select name="mkdf-s" class="wpcf7-form-control wpcf7-select mkdf-select" aria-invalid="false"><option value="1">1</option><option value="2">2</option>
></select></span>

and i would like to insert my class
<span class="wpcf7-form-control-wrap mkdf-s my-class">

someone did this, there is no information in the documentation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kryamk, 2021-08-09
@kryamk

<span class="my-class1">[select menu-594 class:my-class2]</span>

my-class2 - added directly to the select
my-class1 - wraps the select and its wrapper
But to add a wrapper, you can try what niaccurshi advises here, maybe it will do . Simple solutions even failed to google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question