Site logo

Archived topic

How to hide a product category on woocomerce shop page, but show it on another?

7 replies · Started by nomadiceman on February 19, 2023

Viewing posts 1–8 of 8

Basically, I want the default shop page to show only product category A products, but another page shows product category 2 products

I know how to hide products individually, but this hides it from all page

Thanks for any help on this 🙏

wow thank you so much, I was searching for days. Really appreciate your reply 🙏

You're welcome!

Hi, I got it working, but now when I create a page and add a woocommerce block to show that category of products, the styling is terrible.

Do you know why that styling is not good? Is there anything I can do?

Hi there,

try clearing your SG Optimizer caches, as it has combined the CSS.

Also as a general note - Woocommerece Blocks do not use the same templates and styles that Woocommerce does. So its styles will be different to that of archive pages. If you want consistency use the Woo shortcodes:

https://woocommerce.com/document/woocommerce-shortcodes/

Thank you David. I gave the shortcodes a try but still didnt look great.

I'll figure another way I can do this

Thank you for your help 🙏

ok :) let us know if you need any help

This archived topic is closed to new replies.