Here are screenshots of what I’m trying to accomplish. The back to collection button appears right after the “you may also like” section.
Topic summary
A user seeks to add a “back to collection” button beneath product descriptions on their Shopify store using the Studio theme. Initial suggestions recommend using breadcrumb navigation as a more SEO-friendly alternative.
Solution Provided:
- Custom JavaScript code was shared to create the desired button functionality
- Code placement instructions included:
- First snippet added to theme.liquid before closing tag
- Second snippet added to main-product.liquid before schema section
- Final adjustment moved button to product-recommendations.liquid for positioning under “you may also like” section
Key Features:
- Button appears centered at bottom of product pages
- Works even when clicking suggested items, maintaining navigation back to original collection
- Solution successfully implemented and marked as resolved
Follow-up Questions:
- One user asks if solution works for Dawn theme (unanswered)
- Another user requests similar functionality for Kalles theme, wanting button before product description instead of after (unresolved)


