Plugin Support
Milos
(@miloss84)
Hi there,
Thank you for contacting us.
You’re seeing styles from .elementor-kit-7 because Elementor’s Global Styles are applied site-wide, even on pages not explicitly built with Elementor. These styles come from the “Site Settings” in Elementor and are tied to a post type called elementor_library (also known as the “kit”).
If you’re not using Elementor on any pages and want to completely prevent these styles from loading, you can add the following code to your functions.php file or a site-specific plugin:
add_action( ‘wp_enqueue_scripts’, ‘remove_elementor_global_styles’, 20 );
function remove_elementor_global_styles() {
wp_dequeue_style( ‘elementor-global’ );
}
This will stop the global styles from being enqueued.
Kind regards,
Thanks for your help. I tried applying the script on WPCode and I got this error: We encountered an error activating your snippet, please check the syntax and try again. Error message: Undefined constant ‘wp_enqueue_scripts’
But if possible, I’d rather locate the site settings mentioned where I can change the font, size, etc. rather than applying code to block it. It’s bizarre to me that it’s sitting somewhere but I can’t seem to locate it.
Plugin Support
Milos
(@miloss84)
Hi there,
You can check how to configure the site settings here:
https://elementor.com/help/site-settings/
Looking forward to hearing from you.
Kind regards,