• Resolved olgab

    (@olgabrushuk)


    I have a fresh WP installation with WP v5.1.1 and using Gutenberg editor.
    I noticed that a lot of extra empty HTML tags are getting added to the page ones published. It caused a lot of styling and layout issues especially when trying to output things using flexbox etc.
    Unfortunately I cannot provide a link to the website as it’s on my local server.

    • This topic was modified 5 years, 11 months ago by olgab.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    See if this points in the right direction https://github.com/WordPress/gutenberg/issues/11758

    • This reply was modified 5 years, 11 months ago by t-p.
    Thread Starter olgab

    (@olgabrushuk)

    Hi,

    Thank you, after some extra reading of few threads I found out that I needed to change this:
    remove_filter('the_excerpt', 'wpautop');
    to this:
    remove_filter('the_content', 'wpautop');
    in my functions.php

    Although still the solution needs to be a bit more clear as the issue occurs even in the default WP themes in a completely fresh installation. Ideally it should be fixed as it also causes a lot of issues with other editors, for example SiteOrigin ones and Advanced TinyMCE.

    Thanks,
    Olga

    Moderator t-p

    (@t-p)

    Glad you got it sorted ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gutenberg adds extra br & p HTML tags’ is closed to new replies.