'WordPress 5.9 inserting unwanted duotone SVGs and CSS variables
Solution 1:[1]
While writing this question I have stumbled upon the below...
Removal of CSS variables
Adding this to your theme will do the job:
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'global-styles' );
} );
Removal of SVGs
First (if you haven't already) create a theme.json file in your theme folder and add the below:
{
"version": 1,
"settings": {
"color": {
"duotone": null
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Levi Cole |


