Goal: add a “Back” button on Dawn theme product pages that returns users to the prior page/collection.
Solution shared: insert a back-button HTML snippet near the top of Sections/main-product.liquid (just before the closing ) and add CSS in assets/base.css (e.g., .back-button { text-align: center; display: block; }). This creates a centered clickable “Back” element.
Implementation support: a step-by-step guide with screenshots and a YouTube video demonstrates exactly where to paste code and how to save changes. Images and the video are central to following the instructions; code snippets are required.
Results/feedback: several users confirmed it works. One reported the button appears as a plain blue link rather than a styled block, indicating additional CSS is needed for visual styling (beyond display: block and centering).
Open questions:
Positioning at the top-left of the product page (no finalized CSS provided).
Showing the button only on desktop (responsive CSS not provided).
Translating the button text for multilingual stores (no guidance on theme locale files or translation apps).
Status: partially resolved. Core method to add the button is clear; styling, responsiveness, and localization remain unanswered.
Summarized with AI on December 30.
AI used: gpt-5.
I’m using the dawn theme and want to add a back arrow button to my product page so that it will go back to the collection. If a back arrow isn’t an option then I would be happy with a back button in a box that matches my theme.
I have tried the coding posted on a different thread but that was just the word back underlined.
I don’t want to have to instruct an expert for one simple option and I have managed to do everything myself through the Shopify app with the Manage Themes>Customize section so far. I just needed a little more direction as to where you were pointing me to go.
I have found the Edit Code section under the drop down Actions. I’m assuming that the first instruction is also under the Online store> Themes> Edit Code section?
I have added the first lot of coding to the Default Product section under a Custom Liquid Block and moved it up my page. It is appearing under the main image of the product and I would rather it be at the top of the page.
Sometimes I feel like people don’t want to be clear on purpose so you have to pay time or money… I really don’t know why people can’t make concise posts like this to explain exactly how to do everything in an accessible way
If this helps you please accept this answer as a solution so others may see it
Video:
How to add a back button to Dawn theme in 3 minutes
OK I’m really sick of how complicated people make things when it comes to Shopify 2.0 tutorials — people should really explain themselves better
You’re going to want to go to your theme customizer and press edit code:
i just tried this code for the back button. though the code works the second half (when you paste it at the bottom of base.css) just leaves you with a blue “back” clickable link. It does not become a block as shown in the video. Any way to make it a block as shown in your video and not just a link
Thank you, this was so helpful! Is there an edit to this that can be made so the back button only displays on desktop and not mobile devices? Thanks again.
I do have 3 languages in my website though… any idea on how / where do I insert the translation for the back button?.. I’ve been cracking my head, and just can’t bring myself to find it at the"Translate & Adapt" shopify app