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
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024