Can I add a back button to the Craft theme?

Can I add a back button to the 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
3840 716 1177

Hi @kyot 

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
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
516 113 117

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