Don’t Pee In My WordPress

You get a brand new WordPress site installed. You get your theme installed along with a few plugins.

Everything is ready to go and then you start creating content.

Then you look at your page and all the styling and there are paragraph tags everywhere. You might be thinking What did I do?

The realty is WordPress drops p tags everywhere. So how do we solve?

Simple we add some simple code to your functions.php. (Found in your themes folder)

remove_filter( 'the_content', 'wpautop' );

remove_filter( 'the_excerpt', 'wpautop' );

wpautop will take the pee out of your WordPress. The_content is your page and the_excerpt is your post.

Now get coding!