Hello everyone,
I would like to hide the product price on the collections page. I have found some code on the forums specific to my theme (Debut) but it doesn't seem to be working for my site.
Added at end of theme.scss.liquid
// Hide Collection Product Prices .template-index dl.price { display: none !important; }
Here is a link to the page
https://specialtybodyoils.com/collections/custom-blend
Thank You
Solved! Go to the solution
This is an accepted solution.
Welcome to the Shopify community!
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.template-collection dl.price { display: none; }
Hi @SBOils,
You can also try this code
dl[data-price] { display: none; }
But at the same time, I don't recommend removing the price on the collection page.
Collection pages are where people scan many products to pick one that is the most appropriate. In order to make it easier for customers to pick one item, you need to provide essential information, and the price is one of the most important information to display in the list items.
You can take a look at this article about what to include in your collection page to understand more about what I'm saying.
Hi there,
I added the code to theme.scss.liquid to remove product prices on collection pages and also commented out prices on product pages (created an alternate product template), since I have a single product store and price tiers are listed on the pricing page and Homepage as well. Google Ads suspended my adwords account for Circumventing systems policy, specifically Cloaking - which basically is redirecting users to a different URL and/or showing different content to google bot vs site visitors. I've checked all the URL redirects to make sure everything is in order. I believe it's the hidden product price, that's leading to the cloaking issue.
The only code change I made on product page is to hide (comment out) product prices and added the code above to remove prices from collection pages as well. Would really appreciate your thoughts on, if this could be considered as Cloaking ? - showing different content to the google bot (price is visible in the product page xml code) but is hidden from the users/site visitors.
Would appreciate your thoughts on this. Thanks!
Sorry for facing this issue, it's my pleasure to help us.
Welcome to the Shopify community!
and Thanks for your Good question.
Please share your site URL,
So I will check and provide a solution here.
User | Count |
---|---|
566 | |
208 | |
121 | |
82 | |
44 |