Jump to content

Centre aligning the product variant options

Go to solution Solved by Lesum,

Recommended Posts

Posted (edited)

Hi!

I've been trying to align my product variant options to be centred in the page for both mobile and computer and haven't been able to find a solution so far. Is there a way to achieve this?

Thanks for your help!

pp: LUMIERE2024

Edited by a1eisha
password protected website
Link to comment
  • Solution

@a1eisha Hi! You can add this code under Website > Pages > Website Tools > Custom CSS to center the product variant options.

#pdp .tweak-product-basic-item-text-alignment-left .ProductItem-details .variant-radiobtn-wrapper {
    justify-content: center !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

@Lesum

Yes!! Thank you so much! So happy.

I have another question if that's okay - now that I have reduced & centred my add to cart button and variant selector on the product page, is there a way to do the same on the product collection page?

Thank you in advanced!

Link to comment

@a1eisha You can add this code to center the add to cart button on collection pages:

.products.collection-content-wrapper .sqs-add-to-cart-button-wrapper {
    display: flex !important;
    justify-content: center;
}

The variant options in your collection pages appear as a dropdown. Did you want to center the text inside the dropdown select options?

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.