[Resolved] Hide the title on category page

Home Forums Support [Resolved] Hide the title on category page

Home Forums Support Hide the title on category page

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #31194
    xepace

    Hi, Tom. Can you help me? How can I hide part with header and title of the category on category page?

    #31240
    Tom
    Lead Developer
    Lead Developer

    This should work:

    .category .page-header {
          display: none;
    }
    #31902
    xepace

    No. It doesn’t work.

    #31903
    Tom
    Lead Developer
    Lead Developer

    Can you link me to the page so I can see if another style is overriding it?

    #32089
    xepace
    #32164
    Tom
    Lead Developer
    Lead Developer

    Ah ok – this should do it.

    .category .page-header {
          display: none !important;
    }
    #32765
    xepace

    Thank you

    #1678949
    Claudia

    Hello. I am trying to hide the category title and description from appearing at the top of the page – this is how it looks like now: https://strictlyrome.com/category/visit-rome/

    How do I hide that?

    #1679025
    Elvin
    Staff
    Customer Support

    Hi Claudia,

    If you’re trying to hide it on just category taxonomy archive pages, you can try adding this CSS:

    body.category header.page-header {
        display: none;
    }

    If you’re trying to hide it on all taxonomy archive pages, you can try this:

    body.archive header.page-header {
        display: none;
    }

    If you’re trying to hide it on a specific category (example: Visit Rome), try this:

    body.category-visit-rome header.page-header {
        display: none;
    }
    #1679154
    Claudia

    I am trying to hide it on all category pages across all my sites

    #1679238
    Ying
    Staff
    Customer Support

    Hi Claudia,

    In your case, use Elvin’s first CSS solution. ๐Ÿ™‚

    #1679807
    Claudia

    I have no idea where to place the CSS – can you provide step-by-step guidance?

    #1679866
    Elvin
    Staff
    Customer Support

    Here’s our recommended way of adding CSS.https://docs.generatepress.com/article/adding-css/

    The easiest is by adding it on Appearance > customize > Additional CSS. You should see a text area. That’s where you can place your CSS.

    #1679888
    Claudia

    Thanks!

    #1681067
    Elvin
    Staff
    Customer Support

    No problem. ๐Ÿ˜€

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.