Back To Collection Button Narrative Theme

mpgriff90
Excursionist
25 0 13

Hello. How do I get the back button on my product page to go back to the collection page vs just windows history?

Currently the coding for this button is-

<a class="btn" onclick=" window.history.back();">Back</a>

I like the style of the button I just want it to navigate back to the collections page

mpgriff90_0-1628108988544.png

Thank you!

KetanKumar
Shopify Partner
22587 2284 8398

@mpgriff90 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
mpgriff90
Excursionist
25 0 13
mpgriff90
Excursionist
25 0 13

Hello @KetanKumar!

Were you ever able to take a look at this?

0 Likes