WordPress automatically inserts <p> </p> and <br /> tags in the “Text” section in your posts and pages. When you are writing any codes or in some situations it becomes very annoying when you get <p> </p> and <br /> tags automatically filled in your posts. To disable this feature, open the functions.php file of your WordPress theme. Add the below given lines of code:
remove_filter( ‘the_content’, ‘wpautop’ );
remove_filter( ‘the_excerpt’, ‘wpautop’ );
That’s it. WordPress will not automatically put <p> </p> and <br /> tags in your posts and pages.
Note: If you are still facing the same problem, even after you made the above changes. Simply trash the post which you were working on and create a new one. That will solve it.
Thats Journal is proudly powered by Genesis Framework. Genesis is state of the art WordPress Framework to create powerful, robust, secure and SEO friendly websites.
Latest posts by admin (see all)
- Simple Portfolio WordPress Theme With Category Filters - September 21, 2017
- Top 5 Grocery, Online Food Store, Supermarket Magento Themes - September 20, 2017
- Top 5 Jewelry, Watch, Gems, Accessories Store Magento Themes - September 19, 2017