-1

I need to remove the "wpautop filter" from my WordPress Website because it is adding too many paragraphs. I'm new to WordPress. I don't know how to create Child themes. The name of my theme is the "supreme directory". is it also possible to remove the "wpautop filter" from the supreme directory theme directly?

1

1 Answer 1

2

In your child theme's functions.php, try something like this:

remove_filter( 'the_content', 'wp_autop' );

Note that this may have unintended side-effects, and will definitely have an effect on how your content renders.

1
  • 1
    there is no underscore in wp_autop. remove_filter ('the_content', 'wpautop'); Commented Feb 24, 2022 at 0:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.