Hi, not sure what I did but on my desktop, I need help centering my variant + buy button as it shifted left.
Site: https://07f83a.myshopify.com/products/the-peignoir-top
pass: koredoko
A user’s product variant selector and buy button shifted left on desktop in their Dawn theme Shopify store.
Solution Provided:
base.css, style.css, or theme.css in the Assets folderCurrent Status:
The discussion remains open with a partial solution implemented.
Hi, not sure what I did but on my desktop, I need help centering my variant + buy button as it shifted left.
Site: https://07f83a.myshopify.com/products/the-peignoir-top
pass: koredoko
Hi @skymochi
Check this one.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.product-form__input {
max-width: 100% !important;
}
.product__info-container form {
margin: auto !important;
width: 44rem !important;
}
product-form.product-form {
display: flex !important;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi, this worked for the Buy Button, but not for the Variant Options.
Is there a code for that?