Can you add a back button on a Shopify product page?

tyler32
Excursionist
13 0 8

Within the product page, I'd like to add back arrow or back button. This button would be located in the top left corner of the product page and send them back to their previous location.

Replies 4 (4)

KetanKumar
Shopify Partner
36839 3635 11972

@tyler32 

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.

 

where do you need this button?

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
tyler32
Excursionist
13 0 8

I need the button in the top left corner of the page, below the navigation menu.

 

https://www.baumans.com

vdodge
Visitor
1 0 1

How to add Back button on products browsing page, checkout page and continue shopping button at check out or payment page.

KetanKumar
Shopify Partner
36839 3635 11972

@vdodge 

try this cocde

Go to the Online store > Theme > Sections > main-product-template.liquid file and add following code where you want to add Back button.

<a href="javascript&colon;history.go(-1)">back</a>
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