Shopify themes, liquid, logos, and UX
I want add to cart button to always stick at the bottom of the screen in mobile view in the product page
not like this
more like this.
@mTekin Please add the below line of css code at the end of your theme.css file
body product-quick-add.product-quick-add{
opacity: 1;
visibility: visible;
transform: translateY(0);
}
Hi @mTekin,
Please go to Actions > Edit code > Assets > theme.css file and paste this at the bottom of the file:
.shopify-section--main-product .product-quick-add {
opacity: 1 !important;
visibility: visible !important;
}
Hi @mTekin ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
body product-quick-add.product-quick-add{
opacity: 1 !important;
visibility: visible !important;
transform: translateY(0) !important;
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Hello @mTekin
Go to online store ----> themes ----> actions ----> edit code---->theme.css
add this code at the end of the file.
product-quick-add.product-quick-add {
opacity: 1;
visibility: visible;
transform: translateY(0px);
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025