Excluding categories from display with the Categories List Block using Custom CS
-
Hello,
I am searching for some custom CSS code I can add to the additional CSS entry field in the WordPress Categories List block that will exclude or include certain specific categories from display in that specific block display but not on the page as a whole.
I have a website with thousands of quotes, all of which are assigned categories by subject, author, and source text.
I want to display lists of these categories grouped by subject, author, and source text, and thus, for example, I would like to be able to show on one page three separate lists, one of all the subject categories, one of all the author categories, and one of all the text categories.
So, I am looking for some custom CSS code I can add to each individual instance of using the Categories List block on the page that will enable me to include only certain categories for display or exclude all categories other than those desired to be displayed in that specific block.
I believe there is a way to do this by specifying categories for inclusion/exclusion in the code based on their specific category id numbers.
If anyone can provide some sample CSS?code to achieve this, it would be greatly appreciated.
Thank you.
- The topic ‘Excluding categories from display with the Categories List Block using Custom CS’ is closed to new replies.