Site logo

Archived topic

Hide Categories once clicked on

3 replies · Started by Tristan on June 28, 2022

Viewing posts 1–4 of 4

Hi there,

I'm wondering if it's possible to hide certain categories once I click on one (homepage is setup as blog).
E.g if I click on the C4D category I want it to only show the C4d label on posts once it goes into that category page.
Is this possible?

Thanks!

Tristan

Hi Tristan,

One approach to do it is through CSS.

For instance, in the case of your C4D archive page, here’s a CSS you may try:

body.category-cinema-4d .gb-button-wrapper > .gb-button.post-term-item:not(.term-cinema-4d) {
    display: none;
}

Kindly replace cinema-4d in the code with the category slug.

Hope this helps!

You're a genius! Thanks very much

You’re welcome Tristan!

This archived topic is closed to new replies.