If you just want to target shop archive pages use this css:
@media (min-width: 992px) {
body.post-type-archive-product .main.col-lg-9 {float:right;}
}
Kadence Themes
Thank you! That worked for the main shop page, where all my categories are listed. How can I keep the sidebar on the left also for the categories shop page?
…and in the subcategories shop pages? Basically I would need every page of the shop to have the sidebar on the right.
The shop is so organised:
Shop
Cat1
–Product
–…
Cat2
–Product
–…
Cat3
–SubCat3.1
—-Product
—-…
–SubCat3.2
—-Product
—-…
and so on.
The above code move the sidebar on the Cat pages, but not in the SubCat ones.
You can use this:
@media (min-width: 992px) {
body.tax-product_cat .main.col-lg-9 {float:right;}
body.tax-product_tag .main.col-lg-9 {float:right;}
}
Kadence Themes
That worked perfectly, thanks!