Add up to top button

Highlighted
Excursionist
94 0 6

Hello guys someone know how i can add on my shopify shop a button like this https://prnt.sc/vnug2j

 

anchorn.eu

Theme: Broadcast

 

Best regards,

Luka 

Highlighted
Shopify Partner
9375 1185 3284

@LukaL 

Thanks for post 

yes, are you able to code can you please try this 

https://codepen.io/rdallaire/pen/apoyx

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Shopify Partner
151 22 23

Hi @LukaL,

There is some code work.

Add the below code in footer.liquid

<a id="scroll-btn">Top</a> 

You can change "Top" with image. 

You can find footer.liquid template in the following location

Go to Online Store -> Themes -> Actions -> Edit Code ->Sections -> footer.liquid

Add below code in theme.liquid.

You can find theme.liquid template in the following location

Go to Online Store -> Themes -> Actions -> Edit Code ->Layout-> theme.liquid

$('#scroll-btn').on('click', function(e) {
e.preventDefault();
$('html, body').animate({scrollTop:0}, '300');
});

 

 

If It solves your problem, Please Like and Accept Solution.
Do you need Shopify customization and custom work on your store? Hire me.
Feel free to Contact me on pankajtechcode@gmail.com
0 Likes
Highlighted
Excursionist
94 0 6

Hello thanks for the code and how i get the image inside?

 

Best regards,

Luka 

0 Likes