- This topic has 11 replies, 4 voices, and was last updated 3 years, 4 months ago by
Fernando.
-
AuthorPosts
-
December 6, 2022 at 7:25 am #2451502
jason
There are 3 categories below the Primary Navigation, how do hide the category- “hide category” on the homepage and archive page?
https://thesupplying.com/few-question-for-geek/#more-2514
Thanks again.
Jason
December 6, 2022 at 11:53 am #2451910Ying
StaffCustomer SupportHi Jason,
Do you mean to remove the category section from the Geek template?
December 6, 2022 at 5:36 pm #2452245jason
yes, how to remove one or more categories for geek theme?
Thanks
December 6, 2022 at 5:41 pm #2452248Leo
StaffCustomer SupportAre you trying to remove this?
https://www.screencast.com/t/AdGpro39eEIf so you would simply need to remove that category.
December 6, 2022 at 7:54 pm #2452325jason
Leo:
What I need is hige the category, not remove.
Thanks
Jason
December 6, 2022 at 8:09 pm #2452333Fernando Customer Support
Hi Jason,
You can try adding this through Appearance > Customize > Additional CSS
a.gb-button[href="https://thesupplying.com/category/hide/"] { display:none; }This won’t display GB Buttons with this link: https://thesupplying.com/category/hide/
December 6, 2022 at 9:10 pm #2452361jason
Thanks for the help, I have added the code to additional CSS, but it seems not working, the category below does not hide.
https://thesupplying.com/category/hide/Thanks
Jason
December 6, 2022 at 9:29 pm #2452375Fernando Customer Support
It should work for this link: https://thesupplying.com/few-question-for-geek/#more-2514
For a page like that, you’ll need a different CSS. Try adding this:
ul.wp-block-categories-list.wp-block-categories li:has(a[href="https://thesupplying.com/category/hide/"]) { display:none; }December 6, 2022 at 10:06 pm #2452401jason
https://thesupplying.com/category/buy-from-china/
Really thanks for the help, how to modify the code to hide another category like the above “buy from china”
ul.wp-block-categories-list.wp-block-categories li:has(a[href=”https://thesupplying.com/category/hide/”%5D) {
display:none;
}December 6, 2022 at 10:11 pm #2452406Fernando Customer Support
In the code, I’m using the link of the category to hide it. So you can try this:
ul.wp-block-categories-list.wp-block-categories li:has(a[href="https://thesupplying.com/category/buy-from-china/"]) { display:none; }If you want multiple categories hidden in one code, you can try this instead:
ul.wp-block-categories-list.wp-block-categories li:has(:is(a[href="https://thesupplying.com/category/buy-from-china/"],a[href="https://thesupplying.com/category/hide/"])) { display:none; }December 7, 2022 at 2:24 am #2452662jason
Deeply thanks for your help.
December 7, 2022 at 4:58 pm #2453835Fernando Customer Support
You’re welcome, Jason!
-
AuthorPosts
- You must be logged in to reply to this topic.