Skip to content

Instantly share code, notes, and snippets.

@Jursdotme
Created December 20, 2023 10:20
Show Gist options
  • Save Jursdotme/99f6c9fb2053276c0c658dfbb76fda4e to your computer and use it in GitHub Desktop.
Save Jursdotme/99f6c9fb2053276c0c658dfbb76fda4e to your computer and use it in GitHub Desktop.
Gutenberg custom blog style
<?php
add_action('init', 'jurs_register_block_styles');
function jurs_register_block_styles() {
register_block_style('core/paragraph', array(
'name' => 'lead',
'label' => __('Leading Paragraph', 'themeslug'),
'inline_style' => '.is-style-lead {
font-weight: bold;
font-size: 1.15em;
color: #333628;
}'
));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment