Created
August 9, 2023 08:36
-
-
Save Jehu/7b7eca3d3f587253d9829f816943c166 to your computer and use it in GitHub Desktop.
Load ACSS in Gutenberg
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 | |
// Load ACSS Gutenberg editor styles | |
function mwe_acss_gutenberg_styles() { | |
$url = site_url( '/wp-content/uploads/automatic-css/'); | |
wp_enqueue_style( 'mwe-acss-gutenberg', $url . 'automatic-gutenberg-editor.css', false, '1.0', 'all' ); | |
} | |
add_action( 'enqueue_block_editor_assets', 'mwe_acss_gutenberg_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment