Remove WordPress Duotone Styles

Description

Enhance your WordPress website’s performance by using this code snippet Crafted to eliminate duotone styles, it efficiently removes inline CSS styles and SVG code. By leveraging the action hook, ensure a seamless integration, resulting in a cleaner and more SEO-friendly website appearance. Boost your site’s user experience and search engine rankings effortlessly.

				
					function remove_duotone_styles() {
  remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
  remove_action( 'wp_footer', 'wp_global_styles_render_svg_filters' );
}

add_action( 'init', 'remove_duotone_styles' );
				
			

More Snippets

Disable WordPress Lazy Loading

Learn how to disable WordPress’s built-in lazy loading feature with a simple line of code. Improve your website’s loading speed