Sense Theme (15.4.0) How to hide price of sold out items?

Hello! I have learned how to hide ALL prices, but this is not what I need. I would like to hide the prices of specific collections or items on the Sense theme. The prices I want hidden are specifically sold-out collections or items, but I have not figured out how to do this without it affecting the entire store. Thanks!

Hi @dsfp ,

You can use the below condition for this.
{% if product.available %}
{{ product.price | money }}
{% else %}
Sold Out
{% endif %}

This will remove the sold out items price.

thanks for your response @AiTrillion however it did not exactly complete what we need

Adding this line published an additional line of text below the existing prices of both in-stock and sold out items, but did not remove the originally published prices. Is there a condition I need to remove from css to allow for this to be the only text seen? Thanks