Hi there,
is this for a Woocommerce site ? And is it on the archives or the single product pages ?
Thread Starter
naizak
(@naizak)
Hi,
Yes it’s for Woocommercre , I’m actually testing on archives pages.
I’m trying to get sub categories, to get each category with different css layout for each cat. presentation.
ex : “products columns-4”
the class :
article#post-618.post-618.product.type-product.status-publish.has-post-thumbnail.product_cat-peinture.first.instock.shipping-taxable.product-type-simple div.inside-article div.entry-content div.wpf-search-container ul.products.columns-4`
Thank you,
ying
(@yingscarlett)
Hi there,
If you are talking about product archive page, there’re couple unique category CSS classes in the body tag that you can use before the article CSS class.
https://www.screencast.com/t/DJ8zG7kbD8
-
This reply was modified 4 years, 2 months ago by
ying.
-
This reply was modified 4 years, 2 months ago by
ying.
Thread Starter
naizak
(@naizak)
Hi Ying,
I mean the category product inside the 4column, independently, cause i need to style the presentation off each subcategories/ or category with different layout css border etc ii have 20 or more , i don’t like using image with text and border , i prefer pure CSS,
screen shoot sub category result : https://ibb.co/WkRwMcv
Thank you for your advice
Leo
(@leohsiang)
Can you link us to the page in question?
The free GeneratePress theme doesn’t add any styles/css to WooCommerce so this might not be theme related.
I can confirm if you can link me to the page in question.
Thanks!
Thread Starter
naizak
(@naizak)
Hi Leo,
i can’t sorry, in work.
Yes it’s not really linked to the theme, i was wondering if there is an option in the theme, already search for the Woo-commerce solutions couldn’t find it..
Thank you,
Leo
(@leohsiang)
There are no options for WooCommerce in the free theme.
The WooCommerce module is only available in the premium plugin:
https://docs.generatepress.com/article/woocommerce-overview/
Thread Starter
naizak
(@naizak)
Thank you for information Leo, the options I’m looking for is not there ,
Thanks any way , have a nice day