Filters - Categories
Hello,
I would like to inquire if it's possible to configure the category filters on my blog so that only selected categories are displayed, instead of all available ones. Currently, all categories are visible in the filters on my blog, which can be confusing for readers. Is there a way to limit these displayed categories to only those I select?
Thank you in advance for your assistance.
Best regards,
KB
Comments
Hi,
Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.
Thanks
Hi,
link to my website: https://zamkinaszlaku.pl/blog/
You can use the following CSS code to hide particular categories from filters:
This is an example, and you should choose the appropriate category in brackets with
data-rel
.Put this CSS in Betheme -> Theme options -> Custom CSS & JS -> CSS.
Best regards
Hi,
Thank you for the code. This code works only on the first page. When I click on a specific category, for example, Croatia, all categories are displayed again.
https://zamkinaszlaku.pl/blog/
Best regards,
KB
Please remove the
.blog
class from that code and recheck that.Best regards
No, doesn't' work.
}
#Filters li a[data-rel=".category-kraje"],
#Filters li a[data-rel=".category-nie-tylko-zamki"],
#Filters li a[data-rel=".category-zamki-na-szlaku"]{
display: none;
}
If it still doesn't work, please add !important declaration at the end.
Hello!
Now, everything is okay, working. Thank you! :)
Best regards,
KB
You're welcome.