Remove <p> and <br /> from Contact Form 7

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.

define('WPCF7_AUTOP', false );

Comments  Leave a Reply

  1. Thanhk you very much !

  2. Awesome, thanks!

  3. ????????? ???????? February 8, 2018 at 1:47 pm

    ??????? !

  4. Thanks

  5. Andrés Jorge Paz-Soldán Somoza September 18, 2017 at 6:54 pm

    Big thank you! That does the trick!

  6. Thanks a mill!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!