Hi there,
I’m trying to figure out how I can hide the price of one specific product from all places except for the checkout and cart area. Would this be possible? Please review the private content to see further information.
Thank you,
Hey sdsitetechdotcom,
Thank you for the inquiry.
The following css code should hide the product price on most locations in the site aside from the checkout and cart page. You can add it in the Quick CSS field or in the child theme’s style.css file.
#top.postid-20381 .product .price {
display: none !important;
}
You may need to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css.
Best regards,
Ismael
Thanks foe the reply,
I understand that this will hide the price for all products. Is it possible to do it for just one? Based on the product ID?
Thanks,
Hi,
We actually adjusted the above css code so that it only hides the price the product with the ID 20381. Please try it again.
Best regards,
Ismael
Hi there,
I applied the CSS modification and am still not seeing the price hidden on that product ID. Do you have any recommendations to get this fix?
Thanks,
Hi,
Please try this CSS instead:
#product-20381 p.price {
display: none !important;
}
Best regards,
Rikard
Thanks for the reply,
That seems like it would work just fine, but is still somehow visible: