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.
A user seeks to make the “Add to Cart” button permanently stick to the bottom of the screen on mobile product pages for their Shopify Impact theme.
Problem:
Solutions Provided:
Multiple respondents offered similar CSS fixes, all involving:
.product-quick-add classopacity: 1, visibility: visible, transform: translateY(0)Implementation Locations:
</head> tagAll solutions use !important flags to ensure the styling overrides existing theme CSS. The discussion appears resolved with multiple working solutions provided, though no confirmation from the original poster indicates which (if any) was implemented successfully.
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 ,
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