Select Page
Stop WordPress wrapping everything with paragraph tags
I recently had some major problems implementing some jQuery code using the ().next selector turns out it was all because of wordpress adding paragraph tags automatically pulling it out of scope of the selector. Simple solution add: remove_filter( 'the_content', 'wpautop' ); to your functions.php file in your theme.

I recently had some major problems implementing some jQuery code using the ().next selector
turns out it was all because of wordpress adding paragraph tags automatically pulling it out of scope of the selector.

Simple solution add:
remove_filter( 'the_content', 'wpautop' );
to your functions.php file in your theme.

Preloader