Home › Forums › WoodMart support forum › YITH Badge Management Issue
YITH Badge Management Issue
- This topic has 13 replies, 2 voices, and was last updated 4 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
July 2, 2020 at 1:17 pm #208181
AndrewParticipantHi, The badges from YITH Badgment Management Premium Plugin doesn’t show when using Woodmart Theme.
The badges show properly when using Storefront theme.
I’ve tried adding the below code in the functions.php in the child theme, but still it doesn’t work in Woodmart theme.
remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 ); add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
I’ve successfully disabled the ‘Sale’ Label using the below code, because it was persistent.
.product-labels { display: none!important; }
Could you please help to show the YITH Woocommerce Badge Management Labels. Thanks.
Attachments:
You must be logged in to view attached files.July 2, 2020 at 1:36 pm #208194
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin and FTP access so we can check it?
Be sure that you have added the code to your child theme and it is already active.Thank you in advance
July 2, 2020 at 2:13 pm #208219
AndrewParticipantPlease see below
July 2, 2020 at 2:38 pm #208228
Artem TemosKeymasterWe need your website URL and admin access to be able to visit your website.
July 2, 2020 at 9:04 pm #208292
AndrewParticipantHi please see below
July 3, 2020 at 6:26 am #208337
Artem TemosKeymasterThe code is not the right one as you posted here on the forum https://gyazo.com/48fc3b2bb62dfdfff2ede367409ce059
Please, correct the code and check how it works. Also, send us a product that has some badges so we can test.July 3, 2020 at 7:22 am #208343
AndrewParticipantHi,
The code I used was from earlier post in this forum, provided by staff.
Could you please provide the correct code.
Please see link of products below.
July 3, 2020 at 7:26 am #208344
Artem TemosKeymasterPlease, provide a correct FTP access because we can’t connect with the previous data. And the website is not working because of PHP error in the child theme during saving via WordPress dashboard. We need your FTP to fix this. https://gyazo.com/b510ea56af8116c13c266be11bf2ca6f
July 3, 2020 at 8:23 am #208359July 3, 2020 at 8:41 am #208368
Artem TemosKeymasterTry to use the following code and put it into the functions.php file in the child theme to fix this
add_action('init', function() { remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 ); add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); }, 30 );
September 1, 2020 at 9:45 am #222678
AndrewParticipantHi, this code worked in Woodmart 4, but after we updated to Woodmart 5, we are having the same issue again.
This issue is limited to shop pages and category pages, and specifically to Woodmart theme. We tested in Storefront theme
Could you please help?
September 1, 2020 at 11:27 am #222707
Artem TemosKeymasterHello,
Try to replace that code with the following
add_action('init', function() { remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 ); add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); }, 1100 );
Regards
September 2, 2020 at 2:39 am #222885
AndrewParticipantThank you so much. It works.
September 2, 2020 at 6:07 am #222915
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
The topic ‘YITH Badge Management Issue’ is closed to new replies.
- You must be logged in to create new topics. Login / Register