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 Answer
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.
-
1there is no underscore in wp_autop. remove_filter ('the_content', 'wpautop'); Commented Feb 24, 2022 at 0:44