Remove Gutenberg Duotone Filter

Marko Krstić
18 Jul 2022

This is nice feature but in most of the cases you will not want to have it so the clients do not go off brand and mess up with styling.

Also its loading on front end so it’s extra load.

<?php

// Remove unwanted SVG filter injection WP
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );

?>

Was this article helpful?

Tags

Categories

Never miss new post again

Subscribe and get list of new posts in your inbox

Click to Copy