• Hi,

    I need help fixing the formatting behavior of WordPress (using the classic editor).

    WP puts paragraphs and embeds inside of <p></p> tags, which creates problems with other scripts. I tried the following methods I could find online, but none of those work with my?WP 6.2.2 installation:

    • I: adding those two lines to the functions.php:
      • remove_filter(‘the_content’, ‘wpautop’);
      • remove_filter(‘the_excerpt’, ‘wpautop’);
    • II: using these plugins:
    • III: adding this to appearance -> customize -> additional css:
      • body p:empty:before {
      • content: none;
      • }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘prevent tags to be inserted/remove tags for published content’ is closed to new replies.