Home › Forums › WoodMart support forum › Compatibility Issue Between WoodMart and YITH EU Energy Label
Compatibility Issue Between WoodMart and YITH EU Energy Label
- This topic has 6 replies, 2 voices, and was last updated 5 months, 3 weeks ago by
Hung Pham.
-
AuthorPosts
-
April 22, 2024 at 5:23 pm #559538
alberto.di.girolamoParticipantHello everyone,
I am experiencing a compatibility issue between the WoodMart theme and the YITH EU Energy Label plugin. Once the YITH EU Energy Label plugin is activated, the standard WooCommerce labels (e.g., “out of stock”, “discount”) do not display correctly. To restore them, I need to manually refresh the page.
As you can see in the screenshot, the labels are not displayed correctly. This visual example should help clarify the issue I’m experiencing with the WooCommerce labels when the YITH EU Energy Label plugin is active.
April 24, 2024 at 10:04 am #560131
Hung PhamKeymasterHi alberto.di.girolamo,
Thanks for reaching to us.
First of all, take my apologies for the delay in answering.
Please try to add the code below in the functions.php file in your child theme.
add_action( 'init', function() { add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 ); }, 1100 );
Regards,
April 24, 2024 at 10:31 am #560159
alberto.di.girolamoParticipantBello,
Thank you for your response. I appreciate your suggestion. However, I had previously encountered a similar solution in a forum thread addressing a similar issue and had already tried implementing the provided code in the functions.php file of my child theme. Unfortunately, it did not resolve the issue. I have tried again just to be certain, but there was no change in the behavior of the labels.
Could you please suggest any alternative solutions or further steps I might take to resolve this compatibility issue?
April 24, 2024 at 10:38 am #560164
alberto.di.girolamoParticipantI have attached a screenshot to better illustrate the issue with the label display when the YITH EU Energy Label plugin is activated. I’ve noticed that refreshing the page does temporarily fix the label positioning, but it is not a permanent solution.
Attachments:
You must be logged in to view attached files.April 25, 2024 at 10:14 am #560524
Hung PhamKeymasterHi alberto.di.girolamo,
I checked again and products labels are still good while YITH EU Energy plugin is activated https://prnt.sc/jqk4lMIuQ2uy
Regards,
September 6, 2024 at 1:02 pm #595724
alberto.di.girolamoParticipantHi,
Thank you for checking, but I wanted to clarify that 90% of the time, the labels’ styling is broken when the YITH EU Energy plugin is activated. This issue occurs frequently, even though it may not be visible in the screenshot you provided.
I would appreciate it if you could look into it further.
Best regards
September 7, 2024 at 3:29 am #595861
Hung PhamKeymasterHi alberto.di.girolamo,
Thanks for your replies.
I checked your site with the label plugin is activated, labels are showing correctly https://ibb.co/ctN5244
Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register