Hello everyone
I followed a video on how to add a Back to Top Button on my Store. Everything is working, except, that the Button is not visible.
Could someone help me out?
This is the code for the scroll-to-top-button.liquid
Here is the video I used : https://www.youtube.com/watch?v=7jG8ZkjBI6o
Thanks
{% if section.settings.back-to-top-button-enabled %}
Back to Top
{% endif %}
{% schema %}
{
“name”: “Scroll To Top Button”,
“settings”: [
{
“type”: “checkbox”,
“id”: “back-to-top-button-enabled”,
“default”: true,
“label”: “Enable the back-to-top button”
},
{
“type”: “checkbox”,
“id”: “smooth-scroll-enabled”,
“default”: true,
“label”: “Enable smooth scrolling”
},
{
“type”: “color”,
“id”: “botton-color”,
“default”: “#333333”,
“label”: “Button Color”
},
{
“type”: “select”,
“id”: “back-to-top-button-position”,
“label”: “Back-to-Top Button Position”,
“options”: [
{
“value”: “bottom-left”,
“label”: “Bottom Left”
},
{
“value”: “bottom-center”,
“label”: “Bottom Center”
},
{
“value”: “bottom-right”,
“label”: “Bottom Right”
}
],
“default”: “bottom-center”
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}