Hello there,
Thanks for contacting us and I hope you’re doing well 😀
Maybe the plugin override the default gallery and doesn’t add the default hook that our plugin use.
Could you tell me which plugin are you using?
Is this plugin?
https://wordpress.org/plugins/woo-product-gallery-slider/
Please send me the product link where I can download and test the problem on my local installation.
I’m looking forward your response.
Have a good day.
Thread Starter
njinok
(@njinok)
It is this plugin that is being used:
https://wordpress.org/plugins/gallery-slider-for-woocommerce/
The link to one of the products:
https://www.powrfood.com/product/powrshake/
The badges are showing fine when the gallery slider plugin is deactivated.
Hi there,
Please, try to add the following code to the functions.php file of your current theme:
if ( ! class_exists( 'YITH_WCBM_Frontend' ) ) {
add_filter( 'woocommerce_single_product_image_large_html', array( YITH_WCBM_Frontend(), 'show_badge_on_product_thumbnail' ), 99 );
}
This should display the badge in the product page.
I’ll be looking for your reply.
Best regards.
Thread Starter
njinok
(@njinok)
Thank you very much for trying to help. It is much appreciated.
Unfortunately adding this filter to the function file of the child theme did not make the badges appear.
Hi there,
I checked the source code of that plugin but unfortunately it does not provide any hook that we can use to attach the badge.