Support » Plugin: Contact Form 7 » Remove size attribute from inputs

  • decosrl

    (@decosrl)


    I need to remove size attribute from input fields

    This is my cf7-shortcode:
    [email* email id:newsletter-email class:validateAsEmail placeholder "Indirizzo email"]

    This is my output:
    <span class="wpcf7-form-control-wrap email"><input type="email" name="email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email validateAsEmail" id="newsletter-email" aria-required="true" aria-invalid="false"></span>

    How to remove the default size="40" ?

    • This topic was modified 9 months ago by decosrl.
    • This topic was modified 9 months ago by decosrl.
Viewing 1 replies (of 1 total)
  • Hi decosrl, you can change the value like this [email* email size:100], but you can not delete the entire attribute.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove size attribute from inputs’ is closed to new replies.