Shopify themes, liquid, logos, and UX
Can someone please help me place a back to collection button before the product description on product page in Kalles theme? Beside the product title or under the "buy button"
Any ideas would be greatly appreciated. Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Hi @Edith ,
To add a "Back to Collection" button before the product description in the Kalles theme:
Log in to Shopify Admin and go to Online Store > Themes.
Click Actions > Edit code on your Kalles theme.
In Sections or Templates, find product-template.liquid
Locate the product title or buy button section and add this code before the product description :
<a href="{{ collection.url }}" class="btn back-to-collection">Back to Collection</a>
Add the following to theme.scss.liquid for styling:
.back-to-collection {
display: inline-block;
margin: 10px 0;
padding: 10px 20px;
background-color: #f0f0f0;
color: #333;
text-decoration: none;
border-radius: 5px;
}
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thanks & Regards
Akshay Bhatt
This is an accepted solution.
Hi @Edith ,
To add a "Back to Collection" button before the product description in the Kalles theme:
Log in to Shopify Admin and go to Online Store > Themes.
Click Actions > Edit code on your Kalles theme.
In Sections or Templates, find product-template.liquid
Locate the product title or buy button section and add this code before the product description :
<a href="{{ collection.url }}" class="btn back-to-collection">Back to Collection</a>
Add the following to theme.scss.liquid for styling:
.back-to-collection {
display: inline-block;
margin: 10px 0;
padding: 10px 20px;
background-color: #f0f0f0;
color: #333;
text-decoration: none;
border-radius: 5px;
}
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thanks & Regards
Akshay Bhatt
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025