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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe this will help you or anyone else. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a hook available to override the enqueuing of the
theme.json
based 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.json
properties manually so they can be set on the:root
element.Beta Was this translation helpful? Give feedback.
All reactions