• Resolved Rachel Taylor

    (@petecreative)


    I have just installed Gutenberg plugin on a site and converted the classic post content into seperate GBerg blocks. Subsequently it is adding empty p tags after each block.
    I have GBerg 3.9.0 and WP 4.9.8

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Rachel Taylor

    (@petecreative)

    On closer inspection what it is doing is wrapping all the block comments “<!– wp:paragraph –>” in p tags in the browser so there are now large spaces between real paragraphs instead of treating them as comments.

    <p><!– wp:quote –></p>

    <p>What you eat today walks and talks tomorrow.</p>
    <p><cite>Anonymous</cite></p>

    <p><!– /wp:quote –></p>
    <p><!– wp:paragraph –></p>

    I am also having problems with this. As I am adding default CSS (margin) to p-blocks this is shifting the lines on my page.
    If this is needed by Gutenberg, why not use div or span? Or no wrapping around the comments at all?

    Thanks

    Moderator Marius L. J.

    (@clorith)

    Hi,

    This is definitely not an intended behavior. I’ve not been able to replicate it my self though, is this happening with only the Gutenberg plugin active, or do you have other plugins or themes enabled at the same time?

    If you’ve only got Gutenberg enabled when it happens, does it happen to all posts, or just some specific ones?

    If you didn’t have only Gutenberg, would you be able to try it again with no other plugins running? (We understand this isn’t always ideal, as such https://www.ads-software.com/support/topic/known-compatibility-issues-common-questions-and-how-to-report-bugs/#gutenberg-getting-support covers our Health Check & Troubleshooting plugin, which allows you to test this without affecting site visitors)

    stwsu

    (@stwsu)

    In my case the problem seems to be WooCommerce.

    When I create a new Page with a Textblock the resulting code looks like this:

    <div class=”container”>
    <div class=”container_inner default_template_holder clearfix page_container_inner”>
    <p>Test</p>
    </div>
    </div>

    When I set the page as my default shop page in WooCommerce, the code of this block changes to
    <div class=”container”>
    <div class=”container_inner default_template_holder clearfix”>
    <div class=”page-description”>
    <p><!– wp:paragraph –></p>
    <p>Test</p>
    <p><!– /wp:paragraph –></p>
    </div>
    …Additional WooCommerce-Stuff…

    I have the newest WooCommerce-Version installed.

    As WooCommerce is not a small and special plugin, please check this, thanks.

    I also noticed that many shortcodes which work fine without Gutenberg lead to an error when storing the page now. Is there already a post or bug-report for this or should I open one?

    Thanks

    stwsu

    (@stwsu)

    Addon: My Theme is Bridge which uses Qode as Default-Page-Editor. But for the tests, I did not use Qode but only Gutenberg.

    Moderator Marius L. J.

    (@clorith)

    I’m sure the WooCommerce team are on top of this, but I’ll let them know to be certain ??

    Moderator Marius L. J.

    (@clorith)

    I had a quick chat with the Woo people, and also ran some tests my self, and we’re not able to replicate this problem. It is not unlikely that this is being caused by your theme (as the only difference in my setup is the theme right now), if possible, please try without it (using something like Twenty Seventeen), or maybe reach out to your theme developer.

    Thread Starter Rachel Taylor

    (@petecreative)

    I’ve gone back and done some testing and narrowed down to a specific plugin. I’m using the divi theme but GBerg builder on posts. The plugin I’ve narrowed to is an add-on to divi for bulk styling posts. I’ve contacted the developer for them to test on their end.

    Moderator Marius L. J.

    (@clorith)

    Excellent, I’m glad to hear you found the source!

    I’ll let my people know ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blank p tags added after each block’ is closed to new replies.