diff --git a/functions.php b/functions.php index e1a97e6..ce8626c 100644 --- a/functions.php +++ b/functions.php @@ -106,5 +106,30 @@ function jett_block_styles() { ' ) ); + register_block_style( + 'core/post-terms', + array( + 'name' => 'hashtags', + 'label' => __('Hashtags', 'lex-scotland'), + 'inline_style' => ' + .is-style-hashtags.taxonomy-post_tag.wp-block-post-terms a::before { + content: "#"; + } + + .is-style-hashtags.taxonomy-post_tag.wp-block-post-terms a { + background: var(--wp--preset--color--black); + padding: .5rem; + display: inline-block; + color: white; + font-family: var(--wp--preset--font-family--instrument-sans); + text-decoration: none; + margin-right: 5px; + margin-bottom: 5px; + font-size: 13px; + font-weight: 500; + } + ' + ) + ); } add_action( 'init', 'jett_block_styles' );