Home Forums Themes Support Claue-Shopify If anyone wants to add a "Back to top" button it's very easy. Here is how:

Topic Resolution: Not a Question
Viewing 1 reply thread
  • Author
    Posts
    • #23686

      Hey all – Back to Top arrow buttons are generally a nice feature to have on modern websites.  If you’d like to add one to your site create a snippet called “back-to-the-top.liquid” and then paste the code below into that file.  Then add {% include ‘back-to-the-top’ %} just above the </body> closing tag in the theme.liquid file.  I have formatted mine to look entirely different than the default will appear (see attached screen grab) so that it suits my actual site and you can very easily customize yours to your liking as well, by editing the CSS right between the <style> tags in the back-to-the-top snippet that you just created.

      Cheers,

      Ryan.

      Paste everything below this line into the back-to-the-top.liquid file:

      Attachments:
      You must be logged in to view attached files.
    • #23821

      Thank you so much for a helpful suggestion. I have just edited a little bit to easy copy and paste the code.

Viewing 1 reply thread

You must be logged in to reply to this topic.