Sunday, February 24, 2013

Disable automatic paragraphs in WordPress editor

How to disable automatic paragraphs in WordPress editor

WordPress by default automatically creates paragraphs on the post content. Sometimes this is very useful, but sometimes we might want to change this type of behavior which can fit our specific needs. The following recipe explains how we can disable automatic paragraphs in wordpress.

JUst paste the following line into the theme functions.php file:

remove_filter('the_content', 'wpautop');

Now  Once you saved the file then the WordPress will never create automatic paragraphs on the wordpress post or page content.

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off