Repository navigation
Override Enqueuing of theme.json CSS Properties
#39131
Unanswered
lukethacoder
asked this question in
Q&A
Replies: 2 comments
|
Hi. A filter on theme.json, which will be introduced in WordPress 6.1 may be useful. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a hook available to override the enqueuing of the
theme.jsonbased CSS properties into the<head/>.The use case here is being able to use the CSS variables within pseudo elements, which doesn't work when they're set on the
<body/>tag, they need to be set on:root.If there isn't a way to tap into overriding the functionality, are there (easy-ish) ways to load in the
theme.jsonproperties manually so they can be set on the:rootelement.All reactions