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

Do you want to remove all the auto generated tags like
<p>, <br /> etc. from Contact Form 7? You just need to add small snippet in wp-config.php

define('WPCF7_AUTOP', false );


You can add below snippet in functions.php file in your theme folder.

add_filter( 'wpcf7_autop_or_not', '__return_false' );

Leave a Reply

Your email address will not be published. Required fields are marked *