Beta 3 - Styles are being leaked to other elements (randomly)

Hi there,
I remember similar issue being reported in beta 1, - Strange results when Section is duplicated and by others.

The issue still continues to some extend. For example, I can tweak 1x element, background, padding, margin or effects somewhere in the middle or bottom section of the site, and after saving, some random object from section above will also be affected. It’s hard to pinpoint exactly what is causing this glitch because it happens so randomly.

Just now, I deleted row of 4x images above the row with a headline. And after saving and testing on a new tab, this headline size went from 3em is now 1em. But still look visually okay on the builder.

Anyone else experienced this?

Hi @rafalkukla,

Do you mean it looks ok in the builder, but on the front end it gets distorted or the wrong styles? Let me know if you can link to a page where that’s happening (feel free to use a secure note if needed). I could check the elements and try to discern where the styles are coming from. Would you happen to be using any Element CSS? We fixed an issue recently that isn’t in beta3, but was causing something like you’re describing to happen with Element CSS applying to random elements.

Hi Alex,
Yes indeed, everything is displayed correctly in the builder, but on the front end, some elements will get random values - padding, margin, colors. without any reason.

And Yes, I have many custom / Global CSS and styles which I use across different objects.

Let me play around and I’ll try to replicate and then I will send you a link.

Ok didn’t have to wait long. Sending link now.

Thank you! It might be the same thing Misho was seeing where Element CSS was applying to incorrect elements. Would you mind if I logged in there and installed a patched version? We should be able to quickly confirm if a fix I did recently solves this, or if there’s something else to address.

Of course.

Hi @rafalkukla,

I’m sorry for the delay here - I’ll take a look at this tomorrow. Hoping that the build I install has everything fixed. We’re closing in on the release candidate.

Thanks Alex.
I’ve sent you DM with an error log that I found. Could you have a look at it?

Hi @rafalkukla,

I’ve installed a new build on your server. Let me know if that clears up the issues you mentioned above where CSS was unpredictable. Also, I found the direct message and was able to correct that issue as well. It happens when WP CLI is active.

1 Like

Hi Alex,
Thanks, it works better, however I noticed that now the background layers are not displaying at all due to the “new” z-index values are set to “auto” - is this intended behaviour? by changing to 1 fixes the issue.

Thanks! I’ve done some testing between versions and it’s properly migrating the z-index now. I think the issue could have been beta 2 or 3 corrupting the stored value. You might see something similar with section padding getting bumped up to 65px. Updating from Pro 4.3.3 to 5.0.0 should work though.

1 Like