On debut theme its already but you add it if not code added.
on section->product-template page
{% if collection %}
<div class="text-center return-link-wrapper page-width">
<a href="{{ collection.url }}" class="btn btn--secondary btn--has-icon-before return-link">
{% include 'icon-arrow-left' %}
{{ 'products.product.back_to_collection' | t: title: collection.title }}
</a>
</div>
{% endif %}
If you can add this type of code because of different them. you can just ad this code to make it working.
<a class="btn" onclick=" window.history.back();">Back</a>
Add this code in section->product-template file where you want it.
change to this code:
<a class="Button Button--secondary" onclick=" window.history.back();">Back</a>
remove old and change with this code
<a class="Button Button--secondary" style="cursor: pointer;" onclick=" window.history.back();">Back</a>
that part you have to do your self, based on your page code.
User | Count |
---|---|
440 | |
189 | |
139 | |
57 | |
44 |