WordPress Tutorials 1 min read

How to Remove Global Styles in WordPress

Published by Manuel Campos on September 24, 2022 • Updated on November 4, 2024

By default, WordPress loads global styles and SVG filters through block-based themes, which can be useful for many sites.

However, if you’re not using these features or need to optimize your site’s performance by reducing unused resources, you can remove these actions

remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
Manuel Campos

Manuel Campos

I'm a WordPress enthusiast. I document my journey and provide actionable insights to help you navigate the ever-evolving world of WordPress."

Read Next

Support Honest Reviews

Help keep the reviews coming by using my recommended links.

May earn commission • No extra cost to you