How to make add to cart button full section width on the product page?

Hi!

Hope you’re having a nice day! :slightly_smiling_face:

I would like to know how can I make the add to cart button on my product page the full section width?

For illustration, I would like image 1 to look like image 2

Hi @henryNG ,

Could you please share URL and your store password if it enabled? So that we can help you.
Thank you.

My store is callixe.com

thank you :folded_hands:

Hi @henryNG

First, go to Customize Theme => Edit code.

Then find your Theme’s CSS file by searching by the name “CSS”. Usually, that file will be “theme.css” or “theme.liquid.css”, “base.css” or “index.css”.

Once the CSS file is located, add this line at the end of the file:

.product-form .product-form__buttons {
    max-width: unset !important;
}

The result will be as follows:

Hope this helps you.

Hi @henryNG ,

This is Victor from PageFly - Landing page builder, I’d like to suggest this idea for solution:

Step 1. Go to Online Store → Theme → Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before :


Hope my answer will help you.

Best regards,

Victor | PageFly