• Resolved sdccsw

    (@sdccsw)


    Is it possible to add classes to a label?

    Sometimes people prefere to use placeholders but still have the labels for screen readers..etc

    for example
    <label class="control-label sr-only" for="firstnamed">FirstName</label>

    contactform-7 short code
    [text* firstnamed id:firstnamed class:form-control placeholder "First Name"]First Name[/text*]

    https://wordpress.org/plugins/bootstrap-for-contact-form-7/

Viewing 1 replies (of 1 total)
  • Plugin Author Felix Arntz

    (@flixos90)

    I just fixed it for the new version which will be released later today.

    You can use the new label_class attribute on the shortcode to add an additional label class.

Viewing 1 replies (of 1 total)

The topic ‘Classes’ is closed to new replies.