Mimic HTML structure with Advanced Form
-
How would I be able to add a CSS class to the input element?
Maybe there is a way to add it using this filter? https://advancedforms.github.io/filters/af-form-field_attributes/
The reason I ask is because the Advanced Form has to mimic this HTML structure:
<div class=”trailer gutters”>
<label class=”control-label” for=”first-name”>Voornaam:</label>
<input data-validation=”isRequired” id=”first-name” name=”first_name” type=”text” class=”control-input”>
<span class=”message message–error is-hidden”></span>
</div>So a class ‘control-input’ needs to be added to the input element. There needs to be a wrapper element with classes. And a span with classes before the wrapper closing tag.
If this can be done, I am very happy using this plugin for now on. Thanks.
- The topic ‘Mimic HTML structure with Advanced Form’ is closed to new replies.