Disable Automatic Paragraphs
Stops WordPress from wrapping text in paragraph tags and adding line breaks in classic content and excerpts. Block content is not affected.
Opens WPIDE on
Code
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
Notes
Existing classic posts written without HTML paragraphs will appear as one block of text.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.