martinus09
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Product categories widget – hide specific categoryI have managed my problem using plug-in called “Hide Categories Or Products On Shop Page”. It is working fine, done exactly what I wanted. But I am no really a big fan of plug-in when it is not necessary.
Forum: Plugins
In reply to: [WooCommerce] Product categories widget – hide specific categoryActually nothing works for me. This one from Juan looked promising, but no.
https://wordpress.stackexchange.com/questions/192051/hide-specific-categories-from-category-widget
If I want to use this:
//Hide categories from WordPress category widget function exclude_widget_categories($args){ $exclude = "1,4,8,57,80"; $args["exclude"] = $exclude; return $args; } add_filter("widget_categories_args","exclude_widget_categories");After the $exclude I should write categoryID? In my case $exclude = “1478”;
Right?
- This reply was modified 4 years, 1 month ago by martinus09.
Forum: Plugins
In reply to: [WooCommerce] Product categories widget – hide specific categoryHi @nazreenexe
For sure. Here you are.
http://www.superbicykel.sk
and the sidebar you can find here
https://www.superbicykel.sk/shop/For example, I would like to definitely not display category called: “X_NEZOBRAZOVAT” (the last one).
Via CSS I can disable just whole widget. I am not able to get into it.