Archived topic
Global Colors keep getting converted to unreadable values once page is saved.
1 reply · Started by Benjamin on March 24, 2022
Running GeneratePress 3.1.3 + GP Premium 2.1.2 on a multi-site, and am having a maddening problem with global colors. Whenever I (block mode) edit a page and assign a global color, it looks great until the next time I enter the (block mode) editor and re-save. At that point, the value in the color field changes from the proper readable meaningful value, i.e.:
var(--contrast-4)
to a nonsense value making the assigned color fail to apply, i.e.:
var(u002du002dcontrast-4) (same color, but with the hex code dashes becoming written-out alphanumeric strings)
Have you seen this before? Is it fixable? Help!
:Benjamin
Hi Benjamin,
This thread should be helpful:
https://generatepress.com/forums/topic/the-css-attribute-of-the-website-is-escaped-to-uniode/#post-2034958
It's likely caused by a plugin conflict.
Try disable all plugins except GP premium to see which one is causing it.