Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Woocommerce quantity selection and button alignment

Home / Forums / Ascend Theme / Woocommerce quantity selection and button alignment

This topic is: Not Resolved
[Not Resolved]
Posted in: Ascend Theme
May 16, 2018 at 10:33 am

Hello Kadence team,

Please forgive another support request for a similar topic previously raised, but I’m having trouble with the alignment of my Woocommerce quantity selections and buttons on different types of product page. I’ve spent hours trying to find a css solution to save having to ask you!

A while back, Ben very kindly provided a css workaround for centering this area of the product page, as follows:

table.variations {
margin: 0 auto 25px;
}
.woocommerce-variation-add-to-cart {
display: block;
margin: 0 auto;
max-width: 200px;
}
.single_variation_wrap {
text-align: center;
}

The problem arises when I only use a single, large product image with no extra gallery images. When the variation is selected, the quantity selection jumps above the button and out of alignment, as can be seen here:

Other types of product page – both with and without variations – which include extra gallery images behave fine (due to Ben’s code), examples of these are as follows:

What I’m trying to achieve is an equal spacing between the quantity selection and the button for each product scenario – whether it has a single product image or additional gallery image thumbnails. At the moment, each product type (from the three links above) produce different results.

I hope that all makes sense …and thank you in advance for any guidance you can offer!

Andrew.

  • The forum ‘Ascend Theme’ is closed to new topics and replies.