How to add "Back to Collection" button to the top of the product page?

Solved
Highlighted
New Member
1 0 0

i successfully added back button and it goes back to collection page but the mobile version code seems to be not working. can somebody help me with mobile version code???? i would really appreciate it!!! it broklyn theme

Screen Shot 2020-08-07 at 11.36.02 AM.png

Screen Shot 2020-08-07 at 11.37.23 AM.png

  

0 Likes
Shopify Expert
3809 557 906

Send your store url

Want to modify or custom changes on store hire me.
Want to give Gift for time? its my Paypal too.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
1 0 0

Where does this go? 

{% 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 %}
0 Likes
Highlighted
Shopify Expert
3809 557 906

Add this code in section->product-template file where you want button.

Want to modify or custom changes on store hire me.
Want to give Gift for time? its my Paypal too.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
1 0 0

Hi,

Do you have the solution for the Debut theme?

0 Likes