Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1254412

    Hello,
    How to remove featured badge from category and product page?
    Example:

    But not to remove “sale” badge. Example with sale trun on https://kawawbiurze.pl/produkt/lavazza-qualita-oro-1kg/

    They are in the same “onsale” class so can’t remove only one by css.

    #1254579

    Hey tdutkowski,

    They have the same markup and class as you mentioned, so I’m not sure how we can target the CSS for the products where you don’t want this?

    You can use the post ID class if you want to target it for individual products, on the first product then the class would be this:

    .postid-3372

    Best regards,
    Rikard

    #1254580

    This code

    add_filter('woocommerce_sale_flash', 'woo_custom_hide_sales_flash');
    function woo_custom_hide_sales_flash()
    {
        return false;
    }

    Removes only on sale badges but leaves featured. So maby ther is some filter to remeve featured and leave on sale?
    I wont featured gone from product and category view so targeting postid don’t help.

    #1255036

    Hi tdutkowski,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .product.featured .onsale {
      display: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1255258

    This works perfect. Thank you.

    #1255260

    Hi,

    Glad Victoria could help! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove featured badge from product’ is closed to new replies.