-
AuthorPosts
-
January 17, 2020 at 10:15 pm #1175695
Hi,
I would like to remove one category from showing up in my default WooCommerce Shop page. I will call that Category on a different page using a Product Slider. I just don’t want the “Prints” category to show up on my default shop Page.Anyone know how to do this?
Shop Link for reference:
https://www.gregorybeylerian.com/shop/Thanks,
GB
January 18, 2020 at 12:03 pm #1175798Hey gb,
Please try the following in Quick CSS under Enfold->General Styling:
.sidebar .product-categories li.cat-item-69 { display: none; }Best regards,
RikardJanuary 18, 2020 at 5:57 pm #1175877Hey Rikard,
I posted the code, cleared the cache and checked with 4 browsers, and with Opera the “prints” categories are removed However the print products themselves are still visible in the store.
I am wondering if the other approach would be to build a custom shop page and have the added benefit of the Layout builder? But I heard this was more complicated and has its own issues?
Thanks for all the support!
GB
January 19, 2020 at 4:42 am #1175960Hi GB,
Please try this CSS as well:
.html_entry_id_3483 li.product_cat-featured-print-prints { display: none; }Best regards,
RikardJanuary 19, 2020 at 6:16 pm #1176033Hi Rikard,
Thanks, that worked for the “Featured Prints” Also added the following code to remove the “georgie leahy prints”:
.html_entry_id_3483 li.product_cat-georgie-leahy-prints {
display: none;
}It worked to remove those prints as well from that page but the layout is just showing 2 columns now instead of 3 which it is set to.
I added the featured print back and it returned the layout to 3 column.
However what code would I use to just show “Featured Print” in the shop Nav bar? (the code you provided removes all the prints from sidebar)
OK, I figured it out. I created a new “Featured Print” Parent Category and then re applied your code which removed the other print categories.
So its all figured out!!
Thanks again!
GB
-
This reply was modified 5 years, 11 months ago by
gb.
January 21, 2020 at 3:26 am #1176532 -
This reply was modified 5 years, 11 months ago by
-
AuthorPosts
- The topic ‘Can I remove a Category from default WooCommerce shop page?’ is closed to new replies.
