WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Contact Form 7 - Inside Fieldset not P (8 posts)

  1. jwack
    Member
    Posted 4 years ago #

    Using contact form 7 I have it spitting out a form inside a fieldset, but it keeps wrapping the entire fieldset in a p tag? Im not sure where this p tag is coming from, there are no spaces infront of the fieldset?

    Any ideas how to remove this? I really need the fieldset and the p tag produces invalid code.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Unless you have nested forms, the fieldset should be inside the form - not the other way around.

  3. jwack
    Member
    Posted 4 years ago #

    yeah that was a error, the fieldset is inside the form. I just cant figure out why it keeps adding p tags everywhere.

  4. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    Add this line into your wp-config.php

    define( 'WPCF7_AUTOP', false );

  5. jwack
    Member
    Posted 4 years ago #

    @takayukister

    Thank you that worked great.

  6. sharris88
    Member
    Posted 4 years ago #

    thanks great post

  7. warface
    Member
    Posted 4 years ago #

    AWESOME! Cheers @takayukister worked like a charm!

  8. Edd Hurst
    Member
    Posted 4 years ago #

    Thanks for this.

Topic Closed

This topic has been closed to new replies.

About this Topic