Skip to content

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?

  • Author
    Posts
  • #86
    Michael
    Keymaster

    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

    #88
    Michael
    Keymaster

    To 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

    #89
    Michael
    Keymaster

    Check also this solution, to put “Category:” on a separate line in separate font size:

    
    
    .wp-block-query-title>span{
     font-size: 4rem;
     display: block;
     line-height:1.1;
    }
    
    
    • This reply was modified 1 year, 7 months ago by Michael.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.