For some reason my add to cart button isn’t full width. Can someone help me make this happen? Site: Purevalentine.com
1 Like
Hello @lovelisticteam
You can add code by following these steps to make add to cart button full width
-
Go to Online Store → Theme → Edit code.
-
Open your base.css file
-
Paste the below code at the bottom of base.css
.product-form__buttons{
max-width:100% !important;
}
Paste the below code at the bottom of base.css
.product-form__buttons{
max-width:100% !important;
}
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >base.css and paste this at the bottom of the file:
.product-form__buttons {
max-width: initial!important;
}
1 Like
Yes, this one is actually better because it only sets the product buttons to max width. When doingmax-width:100% !important; Other buttons like write a review are also stretched to max width. Thanks ![]()

