WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Line break inserted into code (3 posts)

  1. fcampagna
    Member
    Posted 2 years ago #

    Why is the form automatically inserting a <br> tag in the html code just before each text element in the form on this page?

    http://northshorefight.com/nsfc/

    This is the code for the form:

    <table><tbody><tr><td>First Name:</td><td> [text* your-name 20/]</td></tr><tr><td height="12">Last Name: </td><td> [text* last-name 15/]</td></tr><tr><td height="12">Email: </td><td>[email* your-email 15/]</td></tr><tr><td height="12">Phone: </td><td>[text* Phone 15/]</td></tr><tr><td height="12" colspan="2">[submit "Sign Me Up For a Free Class"]</td></tr></tbody></table>

    Thanks!

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

  2. fooie
    Member
    Posted 2 years ago #

    It's a WordPress quirk.

    Try inserting this into your custom.css file. It worked for me:

    .wpcf7-form-control-wrap br {display: none!important;}

  3. kevincop
    Member
    Posted 2 years ago #

    No it's not a wordpress quirk. Regardless of what wordpress is doing, contact form 7 has its own <p> and
    adding script.

    I provided a solution here: http://wordpress.org/support/topic/plugin-contact-form-7-br-line-break-tags-automatically-added-to-form-layout?replies=2#post-2472654

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic