Hello,
I have successfully removed Hustle Pro CSS styles using wp_footer hook like this:
function wu_remove_scripts_styles_footer()
{
wp_dequeue_style('hustle_icons');
wp_deregister_style('hustle_icons');
wp_dequeue_style('hustle_global');
wp_deregister_style('hustle_global');
wp_dequeue_style('hustle_info');
wp_deregister_style('hustle_info');
wp_dequeue_style('hustle_optin');
wp_deregister_style('hustle_optin');
wp_dequeue_style('hustle_inline');
wp_deregister_style('hustle_inline');
wp_dequeue_style('hustle_popup');
wp_deregister_style('hustle_popup');
}
add_action('wp_footer', 'wu_remove_scripts_styles_footer', 10);
But the plugin still embeds some inline styles, with fonts. Like this:
[attachments are only viewable by logged-in members]
Despite having Vanila turned on in the settings. Is there please a way to remove these unnecessary inline styles too?
Thanks, Jakub