• My site works ok for a while, but today I found that event pages contain a lot of empty lines because of not-stripped (?) wp tags as following:

    <p><!-- wp:heading --></p>
    <h2>Организаторы</h2>
    <p><!-- /wp:heading --></p>

    Each wp element has been surrounded by <p> </p> and this causes a lot of white spaces.

    Any ideas about what happened and what to do now?

    Thanks for any hints!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    You can use custom CSS styling like p:empty{ display: none; }

    Thread Starter OlegD

    (@olegd)

    Thanks, but I’m a bit surprised. I never saw this behavior before and trying to figure out what has been changed, when, and why. Did u change something in EM or it is caused by some changes on the WP side?

    Hello,

    We currently don’t have any EM changes that should impact this one. However one possible reason is probably because there’s an issue with your Events Manager templates under Events > Settings > Formatting > Events.

    There’s a chance they there might be HTML Tags that was not closed properly.

    Another possible reason is probably a plugin or theme conflict

    Thread Starter OlegD

    (@olegd)

    1. Events > Settings > Formatting > Events

    I’ve reduced single event page to the #_EVENTNOTES only, it doesn’t help

    2. I’ve disabled all plugins except EM – doesn’t work as well ??

    Hello,

    Could We perhaps get a sample event link or perhaps cab you post the code/html under Events > Settings > Formatting > Single Event Format?

    Additionally, Does changing the theme doesn’t fix the issue?

    Hi,

    I have the same issue which appears since WordPress 5.7. It was OK with previous version of WordPress. I use Gutenberg editor with Events Manager. If this can help ??

    By the way, the css trick works fine !

    Regards.

    • This reply was modified 3 years, 8 months ago by Denis Jallet.
    • This reply was modified 3 years, 8 months ago by Denis Jallet.

    I’ve got the same problem here. The css trick works, but a fix would be great, as the empty tags make the page unnecessarily large.
    Thank you in advance!

    • This reply was modified 3 years, 8 months ago by medienzeichen.

    Hi there!
    I have also noticed the problem. It occurs with the option define(‘EM_GUTENBERG’, true); WP apparently tries to wrap Gutenberg comments with wpautop.

    It looks like this:

    <p><!– wp:paragraph –></p>
    <p>BLA FASEL</p>
    <p><!– /wp:paragraph –></p>
    <p><!– wp:list –></p>

    • Item
    • Item

    <p><!– /wp:list –></p>
    <p><!– wp:separator –></p>
    <hr class=”wp-block-separator”/>
    <!– /wp:separator –></p>

    Is there any workaround, something like EM_DISABLE_AUTOP ? ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Empty lines because of wp: tags’ is closed to new replies.