Solved

Move Back to Top Button to Left side

FionaCheung
Tourist
9 0 1

Hi there,

 

The default Back to top button is on right ride, is there anyway I can move it to the left side?

 

Thank you!

Accepted Solution (1)
Moeed
Shopify Partner
3554 893 1111

This is an accepted solution.

Hey @FionaCheung 

 

Remove the previous code and try this responsive code with the same steps as mentioned above

<style>
@media screen and (min-width: 768px) {
back-to-top {
    width: 100% !important;
    left: 20px !important;
}
}
</style>

RESULT:

Moeed_0-1705905911487.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App

View solution in original post

Replies 7 (7)

Moeed
Shopify Partner
3554 893 1111

Hey @FionaCheung 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App
FionaCheung
Tourist
9 0 1

https://intothegentle.com/

Thank you @Moeed 

 

My site currently has a problem of the Back to Top button overlapping my another app widget (you can see the Reward button on bottom right). Therefore, I am looking to move the back to top button to left side. 

Moeed
Shopify Partner
3554 893 1111

Hey @FionaCheung 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
back-to-top.back-to-top--visible {
    right: 1460px !important;
}
}
</style>

RESULT:

Moeed_0-1705901974450.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App
FionaCheung
Tourist
9 0 1

Hi @Moeed

 

I tried to insert the code just now, the back-to-top button did moved away from the very right side. But the position is not very ideal that it will land in the middle of the screen (i am using Google Chrome in iMac). Is there any way to make it responsive to the screen size?

 

Thank you!

Screenshot 2024-01-22 at 2.32.23 PM.png

Moeed
Shopify Partner
3554 893 1111

This is an accepted solution.

Hey @FionaCheung 

 

Remove the previous code and try this responsive code with the same steps as mentioned above

<style>
@media screen and (min-width: 768px) {
back-to-top {
    width: 100% !important;
    left: 20px !important;
}
}
</style>

RESULT:

Moeed_0-1705905911487.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App
FionaCheung
Tourist
9 0 1

Thank you @Moeed, it's working now! Much appreciated!

Moeed
Shopify Partner
3554 893 1111

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App