Hide price on a collection page - but not all collections

Hi does anyone know how to hide price on a collection page - but not all collections .

I have the below in my main-product.liquid

but it does not seem to work , i want to able to hide the price on certian colletcion pages and also on product pages

{%- endcapture -%}

{% if template == 'product.name' %} .price-list, .product-form__info-title { display: none; } {% endif %} {% if template.name == "name" %} .grid-product__price { display: none !important; } {% endif %}

Hi,
I hope you are doing well.
You should try this


I am assuming name and product.name is your collection template.
If it still not work, Please provide store url (password as well if password protected) so that we can check issue on our side.
Thanks!

Hi thanks, where would this go in main-collection.liquid or main-product.liquid

Hi I want to hide here

It should go in main-collection.liquid

hi so the collection uses template - telluria and then its uses tags to split into 3 colletions


It should work.
Thanks!

hi thanks for your help - its not as yet , ive added a link

https://n39k0r17gwu75t56-60790735048.shopifypreview.com/collections/telluria-elegance


This will hide on this particular collection
Please check

Hi doesn’t seem to be working , here is where i have the code ..


Please try this.

yes many thanks, for you help .. Thank you

Please like and accept the solution if it is working correctly to you so that others can also get benefit from the same if they are searching for same or similar thing
Thanks!