How to Disable Automatic Paragraphs in WordPress Editor!

disable paragraphsSometimes WordPress automatically creates some paragraphs on your post content. This often gets in the way when you’re trying to space out your text, and also creates validation issues (inserting implicit <p>). While this is generally useful, you might want to change this behavior to fit your specific needs.

If you want to strip the automatically inserted paragraph tags from your content, simply insert this line in your template file above ‘the_content’ tag. Today’s tip explains how you can disable automatic paragraphs in WordPress.

Simply paste the following line into your functions.php file:

remove_filter('the_content', 'wpautop');

 

That’s all. Once you saved the file, WordPress will no longer create automatic paragraphs on your content.

If You Enjoyed This Article, Please Consider Sharing It!!