Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
URL: https://marking-printing-6698.myshopify.com/
How can I hide price from featured products in homepage and in the product list. Thank you.
Solved! Go to the solution
This is an accepted solution.
Hello @markingprinting
I would like to give you the recommendation to support you so kindly follow steps below:
1. Go to your Online store > Themes > Edit code
2. Open your theme.liquid file
3. Paste the below code before </body>
<style>
{%if template contains 'index' or template contains 'collection'%}
.card__content .card__information .card-information .price {
display:none !important;
}
{%endif%}
</style>
I hope the above is useful to you.
Best regards,
GemPages Support Team
To hide the price from featured products in the homepage, you can use CSS code to hide the price element. Here are the steps to follow:
Open your website's admin panel and navigate to the theme editor.
Look for the CSS file for your homepage. This may be called "homepage.css" or "style.css" depending on your theme.
Add the following code to the end of the file:
homepage .featured-product .price { display: none; }
This CSS code targets the "featured-product" element within the homepage and sets the display property of the price element to "none", effectively hiding it from view. You may need to adjust the CSS selector or class names depending on your theme's structure.
Note that hiding the price may not be appropriate for all e-commerce websites, as customers may want to know the price before clicking through to the product page. Consider the impact on your user experience and conversion rate before implementing this change.
Hi I just tried to look for the CSS file for my homepage but i can't find either "homepage.css" or "style.css". My theme is "Sense".
This is an accepted solution.
Hello @markingprinting
I would like to give you the recommendation to support you so kindly follow steps below:
1. Go to your Online store > Themes > Edit code
2. Open your theme.liquid file
3. Paste the below code before </body>
<style>
{%if template contains 'index' or template contains 'collection'%}
.card__content .card__information .card-information .price {
display:none !important;
}
{%endif%}
</style>
I hope the above is useful to you.
Best regards,
GemPages Support Team
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025