We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Code Help! "Scrolling quick add box" needs to be centered on page!!

Solved

Code Help! "Scrolling quick add box" needs to be centered on page!!

NashMashPets
Excursionist
22 0 4

i have been up all night trying to figure this out. .....The quick add - box needs to be centered to the page.. this is for desktop view. not mobile. Here is a picture, Right now it is still on the bottom right. i need it bottom center!!! I believe the code edit answere is somewhere in the product.liquid section. Im unsure!!!!! bleh Its the "dog training" box-bottom right in the picture. Does anyone know how to fix this?

25FB24BF-C0EE-471F-8966-5F9690465A86.jpeg

NashMashPets.com
Accepted Solution (1)
webwondersco
Shopify Partner
1204 172 173

This is an accepted solution.

@NashMashPets it looks like not loading in the current CSS.

 

Do one thing remove from the theme.css file and add the below CSS just before the ending of </body> tag in theme.liquid file.

 

<style>
body .shopify-section--main-product .product-quick-add{
    left:0;
    margin:0 auto;
}

@media(min-width:700px){
body .shopify-section--main-product .product-quick-add{
    left:1rem;
}
}
</style>

 

 

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram

View solution in original post

Replies 5 (5)

webwondersco
Shopify Partner
1204 172 173

@NashMashPets Please add the below line of CSS code at the end of your theme.css file.

 

body .shopify-section--main-product .product-quick-add{
    left:0;
    margin:0 auto;
}

@media(min-width:700px){
body .shopify-section--main-product .product-quick-add{
    left:1rem;
}
}
Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
NashMashPets
Excursionist
22 0 4

edit code ---> theme.css ------> scroll down to bottom-----pasted CSS Code------> refreshed website page multiple times with clickouts-------> nothing happend. Box is still bottom right.

NashMashPets.com
webwondersco
Shopify Partner
1204 172 173

This is an accepted solution.

@NashMashPets it looks like not loading in the current CSS.

 

Do one thing remove from the theme.css file and add the below CSS just before the ending of </body> tag in theme.liquid file.

 

<style>
body .shopify-section--main-product .product-quick-add{
    left:0;
    margin:0 auto;
}

@media(min-width:700px){
body .shopify-section--main-product .product-quick-add{
    left:1rem;
}
}
</style>

 

 

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
NashMashPets
Excursionist
22 0 4

YOU THA MAN!!!!!!!

NashMashPets.com
NashMashPets
Excursionist
22 0 4

Is it possible to get the full scroll quick add box on mobile at the bottom  of the mobile screen also??

NashMashPets.com