Archived topic
WooCommerce Sub-category Page images
7 replies · Started by Juned on January 13, 2021
Hi,
I want to give some designing to image's border at Shop Page and Sub-category Page for product images.
Please help me with this.
(Presently I copy pasted some css for shop pages background from your previous answers in forum)
Thanks in advance.
Hi there,
to add a matching border to your category thumbnails you can try adding this CSS:
.woocommerce ul.products li.product-category a img {
border-right: 2px solid rgba(0, 0, 0, 0.07);
border-bottom: 2px solid rgba(0, 0, 0, 0.07);
box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}
Thanks.
Its only for category images. And not for sub-category images?
That CSS applies to the top Level Categories ( ie. Shop ) and Sub-category images ( eg. Stationery ). What am i missing ?
Home / Shop / Pest Control Services / Cockroach Control
i.e. Home / Shop / Category / Sub-Category
The Sub-category Page Images are not having any effect with above CSS. Although its working fine for Shop & Category Pages.
Ok so to include the Product images as well - change the CSS to this:
.woocommerce ul.products li.product a img {
border-right: 2px solid rgba(0, 0, 0, 0.07);
border-bottom: 2px solid rgba(0, 0, 0, 0.07);
box-shadow: 0 0 10px rgba(232, 234, 237, 0.5) !important;
}
Thanks.
You're welcome