add hashtags block style
This commit is contained in:
parent
fc8f1805a5
commit
d8e90202ad
@ -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' );
|
add_action( 'init', 'jett_block_styles' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user