Add to cart size

Add to cart size

AdamOx
Tourist
19 0 2

Hi,

 

Bodybuilding & Sports Supplements – Discount Supplements

 

Could someone please help me change a button on our website? 

 

In mobile view, our add to cart button doesn't go to the end and looks rubbish. I'm wondering if someone can help me fix this, please?

 

AdamOx_0-1743749984192.png

 

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
11608 2275 2456

Hi @AdamOx 

Please go to store admin > Sales channels > Online Store > Themes > Customize > Theme settings > in Custom CSS, add this code 

@media (max-width: 749px) {
    .product-content-wrapper .pdp-form-action-wrapper {
        grid-template-columns: 100%;
    }
}

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

AdamOx
Tourist
19 0 2

Hi,

 

Thank you for helping with this! It seems to do the trick on mobile.

 

Is there a way to stack them on the desktop so that the add to cart button is much more prominent please? 🙂 

Moeed
Shopify Partner
7362 1994 2433

Hey @AdamOx 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code

3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.product_form_wrapper {
    width: 100% !important;
}
.pdp-form-action-wrapper {
    display: flex !important;
}
}
</style>

RESULT:

Moeed_0-1743750486636.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


bonyecommerce
Shopify Partner
19 1 3

Hi @AdamOx ,

 

Please go to `style.css` file in the assets of the live theme and find:

    @media only screen and (max-width: 767px) {
        .pdp-form-action-wrapper {
            grid-template-columns: 80% 18%;
        }
        .pdp-action-wrapper {
            flex-direction: column;
        }
        .pdp-action-wrapper > * {
            flex-grow: 1;
            width: 100%;
        }
    }

// And change it to
    @media only screen and (max-width: 767px) {
        .pdp-form-action-wrapper {
            grid-template-columns: 100%; // Change only this line
        }
        .pdp-action-wrapper {
            flex-direction: column;
        }
        .pdp-action-wrapper > * {
            flex-grow: 1;
            width: 100%;
        }
    }

Here is the result:

bonyecommerce_0-1743759393089.png

 

Customize checkout payment and delivery methods with conditions for optimal user experience. Try it out! Bony Checkout Rules
AdamOx
Tourist
19 0 2

Hi,

 

Thank you for helping with this! It seems to do the trick on mobile.

 

Is there a way to stack them on the desktop so that the add to cart button is much more prominent please?