In Progress

Style tags duplication and multiple empty style tags in the code

3

I noticed that every block has <style> block duplicated twice – even if I dont use local or block style in greenlight at all. And when I do have styles attached to the class – they are duplicated twice.

It has been like this for very long time, and by the way css location in settings is set to “Inline in head”

Shukhrat

⏱

Replies

Responses

  1. Simon Pushingfin Avatar
    Simon Pushingfin
    Member

    I am seeing this too.Greenlight Pro / ‘GL – Page Builder’ v3.3.9

  2. support_angel Avatar
    support_angel
    Support

    Thanks, we found the cause. Since WordPress 6.9 a synced pattern runs the block render filter twice, so the inline CSS of every synced pattern was printed twice, and patterns or blocks without CSS printed an empty <style></style>. In your screenshots the doubled tags sit exactly on the synced pattern instances (header, the price rows, the Process section).

    Fixed in GreenLight 3.4.0 and GreenShift 13.2.3: each style is printed once and empty tags are skipped. Until you update, turning on “On-Fly Inline Merged CSS” in the settings removes these tags from the page body (block themes only).

    Simon: on your pages the repeated styles come from query loops (each loop item prints the same CSS), not from synced patterns, so this fix won’t change them. We have noted that as a separate issue.

    1. Thanks. I can confirm that styles duplication problem is gone with the new update.

Post a Reply