Back Button on CRAFT THEME

kyot
Visitor
1 0 1

Hello,

Is it possible to add a back button on Craft theme?

Replies 3 (3)
made4Uo
Shopify Partner
3785 710 1094

Hi @kyot 

 

You can use the solution I provided here since Craft and Refresh were coded the same 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Jordan-nw92
Shopify Partner
5 0 0

Hi! I followed these instructions to get a back button for my site and it worked great!! I have then decided I didn't want the back button anymore and tried to delete it and now receive error: "Liquid error (layout/theme line 286): Could not find asset snippets/back-button.liquid"

 

Do you know how I might be able to fix it by any chance? So desperate for help.

Sheesh_b
Shopify Partner
482 108 112

Hi @Jordan-nw92 

Kindly check the theme.liquid file and check for below code and remove the code.

{% assign collection_product_templates = "collection, product" %}
      {% if collection_product_templates contains template %}
     	 {% render 'back-button' %}
      {% endif %}

 

It'll solve your website issue.

 

Thanks

Sheesh B

We're here to simplify website creation for those looking to establish a strong online presence. Book a meeting slot if you want to discuss. It's FREE. BOOK NOW | Try Shopify for $1 for 3 Months: Shopify Trial | Shopify Web Store Developer |
LIKE or mark as ACCEPTED SOLUTION