Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active October 27, 2019 14:06
Show Gist options
  • Save vanaf1979/ad1fc4e4e4cda18677063b4e9329fc4f to your computer and use it in GitHub Desktop.
Save vanaf1979/ad1fc4e4e4cda18677063b4e9329fc4f to your computer and use it in GitHub Desktop.
<?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