For our customization want to remove <p> and <br> tags from wordpress content then place the following snippet in functions.php within your theme folder!.

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );

Have any doubt, then comment here!

1 Comment on Remove <p> and <br> tags from wordpress content

Leave a Reply

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