• Resolved ameraz

    (@ameraz)


    What about adding the possibility to add classes through the shortcode?
    Something like this:

    [contact-form][contact-field label='First Name' type='name' class="awesome-styling" required='1'/][/contact-form]

    … and outputs that class to the field wrapper:

    <div class="awesome-styling">
    <label for="gXXX-firstname" class="grunion-field-label name">First Name<span>(required)</span></label>
    <input type="text" name="g107-firstname" id="gXXX-firstname" value="" class="name" required="" aria-required="true">
    </div>

    https://www.ads-software.com/plugins/jetpack/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Classes to Contact Form Fields’ is closed to new replies.