The following filter will remove inline CSS generated by the Astra theme and Astra Pro plugin. Paste the following code into the child theme’s functions.php file
IMPORTANT NOTE: This filter will remove all the inline CSS added by Astra which will affect the styling of your website.
function astra_force_remove_style() {
wp_dequeue_style( 'astra-theme-css' );
wp_dequeue_style( 'astra-addon-css' );
}
add_action( 'wp_enqueue_scripts', 'astra_force_remove_style', 99 );
If you are facing any error while updating the code or you are still unable to remove the inline CSS from your website, please reach out to us and we will be happy to take a look at your website.