W panelu administracyjnym Shopify przejdź do opcji: Sklep online > Szablony.
Znajdź temat, który chcesz edytować, kliknij przycisk ..., aby otworzyć menu czynności, a następnie kliknij Edytuj kod.
W katalogu Fragmenty kodu kliknij opcję Dodaj nowy fragment kodu.
Nazwij swój fragmentu kodu back-to-the-top, a następnie kliknij opcję Utwórz fragment kodu. Plik fragmentu kodu otworzy się w edytorze kodu.
Wklej następujący kod do nowo utworzonego pliku back-to-the-top:
{% comment %}
Reduce below value if you need the back to the top button to appear higher up on the page.
That value is in pixels.
{% endcomment %}
{% assign vertical_offset_for_trigger = 300 %}
{% comment %}
Vertical offset from bottom of browser for the position of the button.
{% endcomment %}
{% assign position_from_bottom = '6em' %}
Znajdź temat, który chcesz edytować, kliknij przycisk ..., aby otworzyć menu czynności, a następnie kliknij Edytuj kod.
W katalogu Fragmenty kodu kliknij opcję Dodaj nowy fragment kodu.
Nazwij swój fragmentu kodu back-to-the-top, a następnie kliknij opcję Utwórz fragment kodu. Plik fragmentu kodu otworzy się w edytorze kodu.
Wklej następujący kod do nowo utworzonego pliku back-to-the-top:
{% comment %}
Reduce below value if you need the back to the top button to appear higher up on the page.
That value is in pixels.
{% endcomment %}
{% assign vertical_offset_for_trigger = 300 %}
{% comment %}
Vertical offset from bottom of browser for the position of the button.
{% endcomment %}
{% assign position_from_bottom = '6em' %}
Znajdź temat, który chcesz edytować, kliknij przycisk ..., aby otworzyć menu czynności, a następnie kliknij Edytuj kod.
W katalogu Fragmenty kodu kliknij opcję Dodaj nowy fragment kodu.
Nazwij swój fragmentu kodu back-to-the-top, a następnie kliknij opcję Utwórz fragment kodu. Plik fragmentu kodu otworzy się w edytorze kodu.
Wklej następujący kod do nowo utworzonego pliku back-to-the-top:
{% comment %}
Reduce below value if you need the back to the top button to appear higher up on the page.
That value is in pixels.
{% endcomment %}
{% assign vertical_offset_for_trigger = 300 %}
{% comment %}
Vertical offset from bottom of browser for the position of the button.
{% endcomment %}
{% assign position_from_bottom = '6em' %}