Would like to change the style of the add to cart button. Want the button to be blue background color with white text and also want the button wider to fit the screen on mobile view.
https://visionprotect.store/products/anti-blue-light-glasses
Solved! Go to the solution
To make button have blue background and white text:
It should now look like this:
To make the button full-width:
.product-single__add-to-cart {
width: 100%;
}
This makes the button look like this:
Please remember to like and accept my answer if it solves your issue
I am 100% sure that code is correct. If you send me your shopify admin url, which is something like https://example.myshopify.com, I can request collaborator access and fix it for you.
This is an accepted solution.
@cliff781 I added the code to your theme. The final code I added is the following:
// Make add to cart button full-width in mobile
.product-single__add-to-cart {
@include at-query($max, $small) {
width: 100%;
}
}
User | Count |
---|---|
458 | |
194 | |
139 | |
61 | |
42 |