How to Disable Automatic P Tags in WordPress editor without plugin

By August 2, 2017 WordPress No Comments

How to stop WordPress from adding extra ‘p’ tags and line breaks automatic in post content

Many time while we updating pages or posts in WordPress, it automatically adds extra p and br tags automatically at the end of paragraphs. This behavior specially happens when copying text from other source file to the WordPress editor. This can be really frustrating and keeps on messing with the page structure.

You can solve this by plugin also, but i don’t recommended for it. A small 2 line code can solve this issue.

Some people choose to disable the wpautop filter from within their theme’s functions.php. Go to your theme function.php file and add below code.

 


About Vijay Dhanvai

A passionate blogger by heart and mind, I have been working in this field for 7 years now. A WordPress Professional, web developer and designer who intends to guide his readers about Web Design, WordPress, Blogging, Web Development, and more.

Leave a Reply