Ticket #25234 - Compiled styles are broken when caché is enabled
Our previously submitted ticked #24936 was closed but not solved properly so I’ve opened a new ticket again, sorry for that.
Here the original ticket: https://support.promokit.eu/?do=details&task_id=24936&project=3
As suggested, we updated these 2 files pointed in the last solution you gave us:
The problem with the cache and the related elements is “solved” but then we observe two more problems:
- A default widget is added on top of every page displaying a default image and dummy texts “Demo Product Title” and “View product”. We see that in the testing environment we gave you it is also displayed but then hidden via CSS. There is no other workaround here instead of doing this? Where did you put the style class?
- The order of HTML nodes are broken even in the testing environment. If you inspect the page you can see that all the <meta> appears inside the <body> tag instead of the <head> tag. This happens when we apply your solution so the page is unusable.
As far as we can see you’ve mainly modified the pkelements module with a WidgetInterface class instead of a Module class but we can’t see what is causing the problem described above.
Please, can you review this behavior to see how it can be properly fixed?