Reusable templates + ajax loading results in styling issues.
-
Hi there, thank you for the incredible plugin!
I believe I understand why this bug happens but I want to confirm if this is indeed the only possible result so far.
I’m using the amazing reusable template parts + ajax loading solution. As an extra note, I’m making my Reusable Templates (now called Patterns) Synced.
The dynamic loading works. however, If the ajax loading is used, some styling goes broken. Specially those related to core container classes, such as
.wp-container-core-group-is-layout-<some-index>
from a Group Block. The reason seems obvious… when I inspect the browser I can see that there are two elements with the same class, one from one reusable template part, another from the lazy-loaded one. So it looks that the way WordPress renders the dedicated css for each of these classes won’t work because not all page is loaded from start, thus it cannot properly parse the content to create the indexes.Is that it? Do you see any alternative approach for that?
Thanks for any clarification.
- You must be logged in to reply to this topic.