CSS var() colours not working for theme options

edited September 2023 in Theme Options

Hello,

A recent theme update seems to have knocked off the ability to use CSS variables within the theme colour definitions.

For example, storing the value as below has always worked:

But now the colour output from style-colors.php is:

Could you please allow for var() usage in all colour fields?

Looking at the code, the issue arises when mfn_hex2rgba() from functions/theme-functions.php is called.

Adding the below check (in addition to your own for rgb) would be good - until such times as core support for colour variables are added to the theme?

Thanks

Comments

Sign In or Register to comment.