Blog

How to Remove automatic BR & P tags WordPress

In wordpress editor when we press enter/return key between its automatic place the <BR> or <p> tag. its actually a bug of wordpress Editor. Now its easy to get rid from it.

It’s extremely simple to turn <BR> and <P> tags off on your WordPress.

Dashboard – > Appearance – > Theme Editor – > function.php

copy & paste the following code below at very end.

Remove the Automatic br & p tags

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
READY TO DO THIS

Let's get to work

Contact Us