WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[closed] Contact Form 7 - Not W3C Valid (3 posts)

  1. Howdy_McGee
    Member
    Posted 11 months ago #

    I use Contact Form 7 on almost every site I make and try to validate all my WP pages as much as I can (just out of habit I guess) via W3C Validator. I always, always have these 3 errors:

    there is no attribute "novalidate"
    …act/#wpcf7-f4-p20-o1" method="post" class="wpcf7-form" novalidate="novalidate">

    there is no attribute "aria-required"
    …rol wpcf7-text wpcf7-validates-as-required" aria-required="true" /></span>

    value of attribute "type" cannot be "email"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"
    …ol-wrap your-email"><input type="email" name="your-email" value="" size="30" c…

    Is there really anything I can do to remove these 3 errors and have my contact form validate?

    http://wordpress.org/plugins/contact-form-7/

  2. mcseller
    Member
    Posted 10 months ago #

    Hi Howdy_McGee, I can help you for the first and the last validation errors. You have to edit your functions.php (it is located in your active template directory) then you have to add at the end of the file the following line:

    add_filter( 'wpcf7_support_html5', '__return_false' );

    I still need help to fix the other validation error.

  3. Howdy_McGee
    Member
    Posted 10 months ago #

    Thanks, I do try to keep my websites as valid as I can but this is always a hindrance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic