Last active
January 22, 2019 15:04
-
-
Save rdbinteractive/94a53b74d2d05c3655695b48fcee23e0 to your computer and use it in GitHub Desktop.
Dequeue Gutenberg block styling on the front end.
This file contains hidden or 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 | |
/** | |
* Dequeue Gutenberg block styling on the front end. | |
*/ | |
if(!is_admin()) : | |
add_action('wp_enqueue_scripts', 'dequeueGutenStyle'); | |
function dequeueGutenStyle() | |
{ | |
wp_dequeue_style('wp-block-library'); | |
} | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment