Home › Forums › WoodMart support forum › WOOCOMMERCE BADGES " SALE" NOT GOING AWAY
WOOCOMMERCE BADGES " SALE" NOT GOING AWAY
- This topic has 9 replies, 2 voices, and was last updated 3 years, 6 months ago by Elise Noromit.
-
AuthorPosts
-
June 15, 2021 at 5:48 pm #300002
Creative MonksParticipantHello,
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.June 15, 2021 at 10:54 pm #300057
Elise NoromitMemberHello,
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
June 16, 2021 at 7:12 am #300091
Creative MonksParticipantHello 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?
June 16, 2021 at 5:35 pm #300244
Elise NoromitMemberHello,
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
June 17, 2021 at 11:52 am #300394
Creative MonksParticipantHi, 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.June 17, 2021 at 11:53 am #300396
Creative MonksParticipant2nd picture
sorry
June 17, 2021 at 12:02 pm #300401
Creative MonksParticipanti 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.June 17, 2021 at 12:44 pm #300432
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.labels-rectangular .onsale { display:none; }
Best Regards
June 17, 2021 at 12:58 pm #300436
Creative MonksParticipantWell look at that! it works like a charm!!
thanks!!!
June 17, 2021 at 1:02 pm #300437
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: badges, woocommerce
- You must be logged in to create new topics. Login / Register