How can I remove price display from predictive search results?

Hi,

I would like to remove the prices display from the predictive search for products with a specicific tag.

Is it possible to do this by editing the code ?

Thank you very much for your help !

Victor

Hi @totorsjp , please provide your site link

Hi @Dan-From-Ryviu

https://dormeuil.myshopify.com/

Password: eartup

Hi, you can hide them by adding this CSS code at the bottom of component-predictive-search.css file

.predictive-search__item .price { display: none !important; }

Please add below css code in bottom of assets/base.css file

.predictive-search__results-list dd.price__last {
display: none;

}
Thank you.

@totorsjp

span.price-item.price-item--regular {
    display: none !important;
}

Add this code in the bottom of the base.css file.
Thank you.

1 Like

@Dan-From-Ryviu , thank you very much but this applies to all products.

How can I make this change specific for products with a specific tag only ?

{% for tag in product.tags %}
      {% if tag == 'whisky' %}
    

      {% endif %}  
     {% endfor %}
2 Likes