Forums

[Plugin: Contact Form 7] use fieldset - false p tags around (4 posts)

  1. Monika
    Member
    Posted 2 years ago #

    Hi Miyoshi
    I love your plugin because it is simple in the best meanings of this word.

    But I have a problem: If I’m using *fieldset* to create the form, there are p tags around the tags fieldset and this is false.

    Do you know how I can solve this?

    I know the same words as in the comment, but my knowledge about CSS is much better than my english ;)

  2. Takayuki Miyoshi
    Member
    Posted 2 years ago #

    Monika, the <p> is produced by wpautop() function and Contact Form 7 applies it to form contents by default. You can control it with WPCF7_AUTOP constant. When the value of the constant is false, Contact Form 7 doesn't apply wpautop().

    You can define the constant in your wp-config.php like this:

    define ( 'WPCF7_AUTOP', false );

  3. Monika
    Member
    Posted 2 years ago #

    thats great- you made my day :-)

    thanks a lot

    Monika

  4. galbaras
    Member
    Posted 2 years ago #

    Hi Miyoshi,

    Why not make this an admin setting? It's a lot cleaner and simpler for non-technical users.

    Cheers,
    Gal

Topic Closed

This topic has been closed to new replies.

About this Topic