Home / wp-config / Remove <p> and <br /> from Contact Form 7
  • How to Remove <p> and <br /> from Contact Form 7

    contactform7

    Contact form 7 is a great tool but sometimes it adds a little extra HTML that you might want to get rid off within your page, posts. Adding this snippet to your wp-config will remove all of the extra <p> and <br /> from your forms.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    define('WPCF7_AUTOP', false );
    

    ( WordPress codex functions, hooks, in this snippet. )

    wp,