Created
July 21, 2022 05:00
-
-
Save takunagai/eff78cb0408d1f9bfd125a2f77b9c570 to your computer and use it in GitHub Desktop.
[Remove inline CSS (Astra theme)] #WordPress #Astra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove inline CSS (Astra theme) | |
* https://wpastra.com/docs/remove-inline-css-from-astra/ | |
*/ | |
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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment