Home › Forums › WoodMart support forum › Exclude category in Shop page
Exclude category in Shop page
- This topic has 9 replies, 2 voices, and was last updated 2 years, 2 months ago by Elise Noromit.
-
AuthorPosts
-
August 7, 2022 at 9:41 am #395949
tibetnepalartsParticipantHow to exclude one category from a shop page?
August 8, 2022 at 4:04 am #396004
Elise NoromitMemberHello,
You did not specify the place where you want to remove it. Please check this manual, to find the detailed instructions: https://xtemos.com/docs-topic/product-category-menu/
If you have any questions please feel free to contact us.
Best Regards
August 8, 2022 at 4:21 pm #396151
tibetnepalartsParticipantOn the shop page, all the products are shown. I want to exclude the products of one category.
Please check the attachment.
On the shop page as in the picture, I want to exclude all the products of one category.
Attachments:
You must be logged in to view attached files.August 9, 2022 at 3:56 am #396232
Elise NoromitMemberHello,
You can configure the view of the shop and product category page in Appearance > Customize > Woocommerce > Product page.
You will find the option there.
If you have any questions please feel free to contact us.
Best Regards
August 9, 2022 at 9:18 am #396264
tibetnepalartsParticipantThere is no any options to exclude one category. I need to exclude products of only one category in shop page.
August 10, 2022 at 6:32 am #396457
Elise NoromitMemberHello,
Please check this screen: https://gyazo.com/f41d1de5e46aa09ff943695f078f4a77
You can set showing products only, categories only or mixed.
If you have any questions please feel free to contact us.
Best Regards
August 10, 2022 at 3:40 pm #396584
tibetnepalartsParticipantThis is not what I am trying to fix. The shop page is showing products of all categories. I want to exclude products from one category. Please read the problem carefully.
August 11, 2022 at 2:23 am #396689
Elise NoromitMemberHello,
Unfortunately, Woocommerce does not provide the option to show categories and products for one category and hide for another.
It is not possible to implement with custom CSS either.
Best Regards
August 12, 2022 at 9:24 am #396908
tibetnepalartsParticipantI use this code in the function.php file. But It is not working for me.
add_filter( ‘get_terms’, ‘ts_get_subcategory_terms’, 10, 3 );
function ts_get_subcategory_terms( $terms, $taxonomies, $args ) {
$new_terms = array();
if ( in_array( ‘product_cat’, $taxonomies ) && ! is_admin() &&is_shop() ) {
foreach( $terms as $key => $term ) {
if ( !in_array( $term->slug, array(“thanka-paintings”) ) ) {
$new_terms[] = $term;
}}
$terms = $new_terms;
}
return $terms;
}August 13, 2022 at 2:57 am #397058
Elise NoromitMemberHello,
Unfortunately, it is not possible. Our support does not cover fixing or customization of the plugins.
Sometimes, if the issue does not require time-consuming or complicated customization, our developer provides a quick solution, in this case, it would not work.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: Shop Page
- You must be logged in to create new topics. Login / Register