Enqueue Fonts with theme.json but disable the Font Family UI in the Block Editor #158
Unanswered
silaskoehler
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I like the opportunity to load the fonts via theme.json. However, when I do that, I always have the UI for it in the editor and I don't want that. My current solution is to load the fonts via the theme.json and then set the block support for
__experimentalFontFamily
to false via theregister_block_type_args
.Is there a better solution? I use a classic or hybrid theme and would prefer to load the fonts via php.
Beta Was this translation helpful? Give feedback.
All reactions