Shopify themes, liquid, logos, and UX
Hello, I need to add a text saying 'Desde' before the pricetag on product cards/collection pages, however I want the text to not appear once on the product page.
This is cause my prices start from 9.76 and I want to make it evident, but I dont want the text appearing anymore on the product page as it has no use there. Any help is appreciated!
(^ This is what it looks like now)
(^ This is what I would like it to look like roughly)
Store: artisimo.es
Solved! Go to the solution
This is an accepted solution.
Hi @JordiP
.card-information .price__container .price__regular::before {
content: "Desde ";
}
This is an accepted solution.
Hi @JordiP
.card-information .price__container .price__regular::before {
content: "Desde ";
}
Thanks! Would it also be possible to turn the text & price red?
You can achieve this by including a variable on the render price element to control when 'Desde' is displayed. Below is an example of how to accomplish this on Dawn theme.
Firstly locate the first occurrence of money_price declaration inside price.liquid and insert the following code.
{% if desde_price %}Desde{% endif %}
Then locate the render 'price' declaration inside card-product.liquid and add the following code to the end of the variable list
, desde_price: true
This will then display 'Desde' only on the collections page and not the product page. Additionally anywhere where render 'price' is used, you can include the desde_price variable to toggle on the text.
Hope this helps
Simon
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025