Liquid, JavaScript, themes, sales channels
I've figured out how to remove the price from the actual product page, but it still shows the price on the collections page. I'd like to remove the prices for one specific collection. I've tried following advice from several similar threads, but haven't had any luck.
Here is the page I'm talking about
https://www.michigansloyd.com/collections/gallery
Solved! Go to the solution
This is an accepted solution.
Hi @dode12,
Please go to theme.liquid file and add code here:
Code:
{% if collection.handle == 'gallery' %}
<style>
.card .card__price {
display: none !important;
}
</style>
{% endif %}
Hope it helps!
Hi @dode12,
Go to your Online store > Themes > Edit codes > theme.scss.liquid add this code at the bottom, click Save button
#gallery .card__price { display: none !important; }
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
Hi @dode12,
This is Victor from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Go to Online Store->Theme->Edit code->theme.liquid->paste bellow code in tag </body>
<style>
.card__availability {
display: none !important;
}
</style>
Please refer to this screenshot:
Hope you find my answer helpful!
Best regards,
Victor | PageFly
This is an accepted solution.
Hi @dode12,
Please go to theme.liquid file and add code here:
Code:
{% if collection.handle == 'gallery' %}
<style>
.card .card__price {
display: none !important;
}
</style>
{% endif %}
Hope it helps!
Thank you! One of the easiest edits I've made and worked perfectly.
Hi @Litos, I am facing the same problem but it is still not working with me. I want only to remove the price from the Featured Collection on my home page and keep the prices on the other collections. I tried lots of options none worked for me, maybe I am placing the code in the wrong place, can you please help?
Hello @dode12,
To resolve this issue, you need to add the below-provided code to your theme.liquid file:
Follow the below steps to get the same done.
Note - You are advised to follow the instructions if you are comfortable with handling the Shopify theme and liquid.code. Else, please hire a Shopify expert who can help you with this.
Go to Shopify admin > Online store > Select your theme
Click on action > Edit code > open theme.liquid file
Paste the below code just before the </head> tag
Save the changes.
Find the code below-
{% if collection.handle == "gallery" %}
.card .card__price{
display: none !important;
}
{% endif %}
Hope it helps. Let us know if you need further help with this issue.
All the best,
CedCommerce
User | RANK |
---|---|
37 | |
24 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023