Created
November 23, 2018 01:09
-
-
Save authentikHQ/b3733fe8ac55701ce81e8728a101159a to your computer and use it in GitHub Desktop.
Remove Gutenberg style sheet from loading with the Genesis Framework.
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
<?php | |
// Do NOT include the opening php tag. | |
// Remove Gutenberg style sheet from loading. | |
add_action( 'wp_enqueue_scripts', 'athk_remove_gutenberg_style_sheet', 200 ); | |
function athk_remove_gutenberg_style_sheet() { | |
wp_dequeue_style( 'wp-block-library' ); | |
wp_deregister_style( 'wp-block-library' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment