How to hide “Category:” or “Tag:” from Archive Title Block?
Support Forum: Block Templates
Dashboard › Forums › Themes › Block Templates › How to hide “Category:” or “Tag:” from Archive Title Block?
- This topic has 2 replies, 1 voice, and was last updated 1 year, 5 months ago by Michael.
-
AuthorPosts
-
June 15, 2023 at 18:40 #86MichaelKeymaster
I want to hide the “Category:” or “Tag:” when using the Archive Title Block in a Block Template.
How can I achive this?
BR Michael
June 15, 2023 at 18:44 #88MichaelKeymasterTo hide “Category:” or “Tag:” add the following CSS to your theme:
.wp-block-query-title{
font-size: 0;
}.wp-block-query-title>span{
font-size: 36px;
display: block;
}You can add it directly in customizer via Global Settings -> Additional CSS
or
add it to your child-themes style.css if you are using one.
Do not add it to the main theme style.css, as it will be overwritten on updates.
BR Michael
June 15, 2023 at 19:05 #89 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.