Home Forums WoodMart support forum WOOCOMMERCE BADGES " SALE" NOT GOING AWAY

WOOCOMMERCE BADGES " SALE" NOT GOING AWAY

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #300002

    Creative Monks
    Participant

    Hello,

    i want to remove the template product badges in the category view and single product pages. since i have Yith product badge plugin..

    but for some reason the labels keep returning when i empty the website cache..

    i have tried to add the following CSS:

    .product-image-summary .product-images .labels-rounded .onsale{
    display: none;
    }
    body .labels-rounded .onsale {
    display: none;
    }

    to custom CSS global.. but this is breaking the styling css of the website..

    the following css is also added that seem to work..

    body .labels-rounded .onsale{
    display:none;
    }

    body .labels-rounded .out-of-stock{
    display:none;
    }

    On some places like the sliders etcc the good badge is shown.. but on product pages the new BADGE and OLD template badge both show…

    in the function.php i removed the 2 lines..

    remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 );
    add_action( ‘woocommerce_before_shop_loop_item_title’, ‘woodmart_template_loop_product_thumbnail’, 10 );

    any idea what is going on? and how i can disable all theme badges so the plugin can work correctly?

    Attachments:
    You must be logged in to view attached files.
    #300057

    Hello,

    Please deactivate all the plugins not related to the theme, switch the parent theme, and check the issue, If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    Best Regards

    #300091

    Creative Monks
    Participant

    Hello Elise,

    i think we misunderstand eachother, the sale badge created by the template is commenly discussed here on the topics.

    the codes to add to global css i found on this forums ( where to delete the sale badge on category views and sliders )

    also the 2 lines i needed to remove from woodmart function.php i also found on this forum.

    al thise were instructions from xtemos to others.

    all thise worked for me. except that i now need to know how to delete the sale badge on product page?.. here it still displays while my sale badge from the yith plugin also displays..

    ps: when i activate the main template will this effect the design of the website?

    #300244

    Hello,

    These bases are provided by a plugin not related to the theme and you are trying to hide them with the theme-related CSS, that is why they appear. https://gyazo.com/4b653f07d2097e321a983cddf5be5334

    Best Regards

    #300394

    Creative Monks
    Participant

    Hi, thanks for youre response..

    i think we have a small misunderstanding.. i have attached a image

    the SALE badge pointed with the green arrow is GOOD and is provided by YITH..

    the sale badge that is pointed with RED is wrong and is provided by template..

    the second screenshot is when i have disabled YITH badge ( slider )
    and third is from product page with sale badge still there..

    thanks

    Attachments:
    You must be logged in to view attached files.
    #300396

    Creative Monks
    Participant

    2nd picture

    sorry

    #300401

    Creative Monks
    Participant

    i see that uploading the first image went wrong.

    This is the image
    the SALE badge pointed with the green arrow is GOOD and is provided by YITH..

    the sale badge that is pointed with RED is wrong and is provided by template..

    Attachments:
    You must be logged in to view attached files.
    #300432

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .labels-rectangular .onsale {
    display:none;
    }

    Best Regards

    #300436

    Creative Monks
    Participant

    Well look at that! it works like a charm!!

    thanks!!!

    #300437

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 10 posts - 1 through 10 (of 10 total)