Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
function register_uppercase_heading() {
register_block_style(
'core/heading',
array(
'name' => 'uppercase-heading',
'label' => 'Uppercase',
'inline_style' => '.is-style-uppercase-heading { text-transform: uppercase; }'
)
);
}
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
You can’t perform that action at this time.