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 Political Campaign, Election, Politician HTML5 Templates - April 23, 2017
- Top 3 Crowdfunding, Crowdsourcing website HTML5 Templates - April 22, 2017
- Top 5 Charity, NGO, Donation, Fundraising HTML5 Templates - April 21, 2017