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)
- Top 5 Construction, Building, Architecture Drupal Themes - June 26, 2017
- Top 5 Medical, Health, Doctor, Dental, Clinic Drupal Themes - June 25, 2017
- Top 10 Web Design Trends That Will Shape Future Of Designing - June 24, 2017