Hide the Price Spark Theme Collection & Search 2.0 Theme

octy
Excursionist
14 0 9

Hello, 

 

I need some help for my new Spark theme. We are building up a new catalog of products, that are currently not for direct sale on the website. I would like to hide the prices of the product on the collection and search page. 

 

Could you guys help me on that ? 

 

Thank you 

 

search.pngshop.png

 

Replies 14 (14)

Zworthkey
Shopify Partner
5581 642 1565

@octy 
Welcome to the Shopify community!
Thanks for your good question.


Please share your store URL.
So that I will check and let you know the exact solution here.

octy
Excursionist
14 0 9
Zworthkey
Shopify Partner
5581 642 1565

@octy 
Kindly send your Store url.
or check out this code.
Add this code into the theme.css file.

.quick-search__result-subheading span {
    display: none !important;
}
octy
Excursionist
14 0 9

Hello,

 

yes this is the current URL.

https://strongfit-safety.myshopify.com/

We are building up right now.

 

I added it to body &/or Header, and it doesn't work.

Zworthkey
Shopify Partner
5581 642 1565

@octy 
you not have to Add it on the header or body.
find 'theme.css' and paste  their code at the bottom
1. Navigate to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.
3. Save it.

octy
Excursionist
14 0 9

Yes, that's what I did again. Check the Links please, it still doesn't work. 

Zworthkey
Shopify Partner
5581 642 1565

@octy 
I can see ,You still haven't added in theme.css file
Then how code will reflect.

octy
Excursionist
14 0 9

I refreshed my store and pastet it again. Now it worked ! Thank you great. Could you help me with the collection page to hide the price ? Thank you 

Zworthkey
Shopify Partner
5581 642 1565

@octy 
yes Sure,

Zworthkey
Shopify Partner
5581 642 1565

@octy 

span.product-item__price {
    display: none !important;
}

Add this code in the bottom of theme.css file.

octy
Excursionist
14 0 9

This worked great. One last question. When you open the search bar and then go to show all results. The prices are shown again. Is there a possibility to solve it ? Thank you 

Zworthkey
Shopify Partner
5581 642 1565

@octy 
yes, it's possible to solve it.

octy
Excursionist
14 0 9

Could you help me at this point ? 

tennisracket
Tourist
9 0 1

Hi, I need support with this too. I added the code however it only adjusted the search results. I want the pricing off of the collection pages. Store is ouielle.com