[Resolved] Woocommerce Images are left aligned?

Home Forums Support [Resolved] Woocommerce Images are left aligned?

Home Forums Support Woocommerce Images are left aligned?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1358614
    troyw

    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

    #1358778
    David
    Staff
    Customer Support

    Hi there,

    You can change alignment in Customizer > Layout > Woocommerce –> Image Alignment.

    https://docs.generatepress.com/article/woocommerce-overview/#shop

    #1359621
    troyw

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

    #1359871
    David
    Staff
    Customer Support

    There’s a lot of options to easily miss one or two 🙂
    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.