Remove size attribute from input fields
-
Is there a filter function or hook to remove the automaticly inserted “size” attribute?
This is what I get:
<span class=”wpcf7-form-control-wrap firstname”><input type=”text” name=”firstname” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required half” aria-required=”true” aria-invalid=”false” placeholder=”Vorname”></span>This is what i would like to get:
<span class=”wpcf7-form-control-wrap firstname”><input type=”text” name=”firstname” value=”” class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required half” aria-required=”true” aria-invalid=”false” placeholder=”Vorname”></span>Another question:
Is there a hook to add the input class to the wrapper span?Thanks in advance!
- The topic ‘Remove size attribute from input fields’ is closed to new replies.