Currently my product page buttons are stacked on both mobile an desktop: https://cocoandbundle.com.au/collections/mushie/products/snack-cup-natural
How can i place them side by side on desktop but stacked on mobile?
A user seeks to reposition product page buttons from stacked to side-by-side on desktop while keeping them stacked on mobile. They also want to ensure both buttons match in size.
Current Issue:
Solution Provided:
A responder offers custom CSS code to be added to the theme’s stylesheet.css file. The code includes:
Implementation Steps:
Status: Solution provided, awaiting confirmation from original poster on whether it resolves the issue.
Currently my product page buttons are stacked on both mobile an desktop: https://cocoandbundle.com.au/collections/mushie/products/snack-cup-natural
How can i place them side by side on desktop but stacked on mobile?
Would you like the buttons to appear like this on the desktop screen? Please refer to the screenshot for clarification.
yes that’s correct!
I can see the shop purple shop button is slightly smaller than the add to cart button? how can i get them to match as well?
Hi @zoeeblightt
Please follow these steps to add the custom CSS:
Step 1: Go to Shopify Admin → Online Store → Themes → Edit Code.
Step 2: Open the file stylesheet.css
Step 3: Scroll to the bottom of the base.css file and insert this code:
@media (min-width: 1024px) {
.product__section-details form{
display: flex;
}
.product-add {
width: 45%;
margin-right: 30px;
}
.gravity-button {
height: 55px !important;
}
.product__section-details form .shopify-payment-button {
width: 45%;
}
}
Hope this helps! ![]()
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you! ![]()