Last active
October 27, 2019 14:06
-
-
Save vanaf1979/ad1fc4e4e4cda18677063b4e9329fc4f to your computer and use it in GitHub Desktop.
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 | |
function register_uppercase_heading() { | |
wp_register_style( 'block-style-uppercase-heading', get_template_directory_uri() . '/block-style-uppercase-heading.css' ); | |
register_block_style( | |
'core/heading', | |
array( | |
'name' => 'uppercase-heading', | |
'label' => 'Uppercase', | |
'style_handle' => 'block-style-uppercase-heading', | |
) | |
); | |
} | |
add_action( 'after_setup_theme' , 'register_uppercase_heading' ); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment