Allow duotone support control within theme.json
#35931
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
What problem does this address?
I noticed that my block theme outputs a series of
<svg>
elements in the footer of my theme, and then I realized that they're all coming from duotone. So, I thought maybe I can disable all duotone fromtheme.json
with this:However, all of the
<svg>
are still there. This is not ideal for performance. I would prefer to have the ability to not have all those superfluous<svg>
output if I do not want/need them.What is your proposed solution?
If the two keys exists in the
theme.json
then disable all duotone support and do not output<svg>
withadd_filter( 'render_block', 'gutenberg_render_duotone_support', 10, 2 );
I'm currently running WordPress 5.8.1 and Gutenberg plugin 11.7.1
The text was updated successfully, but these errors were encountered: