Modern Events Calendar, edit ans live looks different

Hi there

When I insert a calendar on this page https://www.happysmiles.dk/forside-ny/ the background from the calendar section extents over the rest of the sections.

But it only shows in live, and not edit mode.

I’ve tried to:
· Create a whole new page - same issue
· Use Content ares, text element, classic raw element - all the same
· Deactivate all plugins, but the MEC - still the same

Any idea what’s wrong?

Cheers!

Hey There,

The potential cause of the is are broken HTML code. I checked your pages and there are several of them.


Please check your content for broken HTML.

The other potential cause is HTML minification, please also disable the minification option of WP Rocket plugin after you have checked for broken HTML.

Let us know how it goes!

Thanks

How do I check for broken HTML?
I’ve disabled HTML Minify and cleared all caches.

… And what to do about it?

Cheers

Hi There,

Thanks again for asking!

Please check the HTML that you have embedded for a invalid tag.
You can remove any tag and check again.

Let us know if that fixes the issue.

Sorry … I must be stupid :slight_smile:

I haven’t added any custom HTML.
The event calendar HTML is generated by the shortcode. And when I remove the shortcode, everything seems fine.
So the issue has to be in the MEC plugin … as I see it. But please correct me if I’m wrong.

What tool du you use to see the errors?

Thanks :slight_smile:

Hey @rbitfoto,

Yes, it looks like the issue is coming from MEC. I added the shortcode in a test page and it produces broken HTML. I fixed the issue temporarily by introducing a closing </div> tag after the MEC shortcode. Please take note of this as once MEC has been offically fixed, you will need to remove that closing tag.

I’ll post this in our issue tracker so our development team could forward this to MEC’s developers.

By the way, you can check your HTML or whole source code at http://htmlhint.com or https://validator.w3.org/

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.