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 10 Fashion, Lifestyle, Feminine, Beauty WordPress Themes - February 21, 2017
- Top 5 Biker Club, Motorcycle, Bike Shop WordPress Themes - February 20, 2017
- Remove date and time stamp from image for free using GIMP - February 19, 2017