Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1361732

    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,

    #1361738

    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

    #1361739

    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,

    #1361754

    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

    #1361756

    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,

    #1361766

    Hi,

    Please try this CSS instead:

    #product-20381 p.price {
      display: none !important; 
    }

    Best regards,
    Rikard

    #1361894

    Thanks for the reply,

    That seems like it would work just fine, but is still somehow visible:

    #1361901

    Hi,

    I added the code I sent to the top of Quick CSS, and it’s working now. You might have some invalid CSS in the Quick CSS box, which stopped it from working.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.