Add a 'Return to Top' link in mobile view (v. 2.9 - 2.93)

To add a link that takes the customer back to the top of the page in mobile view:

  1. Add the following to the bottom of your template, just above the tag:

    top
  2. Add the following styles to your custom template CSS:

    #returntotop { display: block; position: fixed; z-index: 9999; top: 5px; right: 5px; text-align: center; font-style: Arial, Helvetica, sans-serif; font-size: 14px; cursor: pointer; }
    #returntotop:before{ display: block; content: ""; border-bottom: 14px solid #000000; border-left: 12px solid transparent; border-right: 12px solid transparent; }
    @media screen and (min-width: 600px) { #returntotop { display: none; } }