Site logo

Archived topic

Woocommerce Images are left aligned?

3 replies · Started by troyw on July 9, 2020

Viewing posts 1–4 of 4

Hey guys,

I am trying to get all of the Woocommerce images on my home page to align to the centre, instead of off to the left.
There are a million help forums on the internet telling me to add this code, but it does not work.
.woocommerce .cols-2 li.product a,
.woocommerce.columns-2 li.product a {
text-align: center;
margin: 0 auto;
display: block
}
I found a link on your forum and have tried adapting your CSS, but still no luck.
https://generatepress.com/forums/topic/woocommerce-center-product-name-related-products-product-image-size-shop-page/

For example;
.woocommerce .related ul.products li.product,
.woocommerce .sale-products ul.products li.product {
text-align: center;
}
.woocommerce .related ul.products li.product,
.woocommerce .best-selling-products ul.products li.product {
text-align: center;
}
.woocommerce .related ul.products li.product,
.woocommerce .featured-products ul.products li.product {
text-align: center;
}

Any ideas what I am doing wrong?

Thanks

OMG, can't believe I had to ask that, Duh. Sorry David.

There's a lot of options to easily miss one or two :)
Glad to be of help

This archived topic is closed to new replies.