Hello there,
Thanks for contacting us and I hope you’re doing well 😀
I checked and blocksy theme change the way to show the images on product page and override the default WooCommerce hooks.
I enabled the theme on my installation and I created the following code in order to add the badge on product page.
Please, add the following code in the functions.php of your active theme:
if( !function_exists('yith_badge_container_start_for_blocksy') ) {
add_action('blocksy:woocommerce:product-view:start','yith_badge_container_start_for_blocksy');
function yith_badge_container_start_for_blocksy() {
do_action('yith_wcbm_theme_badge_container_start');
}
}
if( !function_exists('yith_badge_container_end_for_blocksy') ) {
add_action('blocksy:woocommerce:product-view:end', 'yith_badge_container_end_for_blocksy');
function yith_badge_container_end_for_blocksy()
{
do_action('yith_wcbm_theme_badge_container_end');
}
}
I checked and works fine for me. See the following link
Please, try it and let me know.
Have a good day.
Hi,
Thanks for your feedback !
I enabled your code with Code snippets plugin but un fortutately it has no effect on my product:
https://latelierchazalote.fr/produit/banane-adulte-chazalote-ginko-bordeau/
https://ibb.co/bBd3qdL
Hello there,
I hope you’re doing well 😀
Unfortunately the maintenance mode is enabled on your site and I cannot see the product.
Try to add it directly in the functions.php of your active theme.
The code I shared with you is for a compatibility with the following theme
https://wordpress.org/themes/blocksy/
I’m looking forward your response.
Have a good day.
Hi,
Strange because i added in functions.php too but the badges does not display in blocksy.
Thanks for help
Hi there,
I hope you’re doing well.
I noticed something when I was looking at the screenshot you sent.
It seems that you had the Schedule Badge option enabled in the product settings and without a date selected. This might have been why the badge wasn’t displayed.
If you still have issues, I would recommend you try to disable it or set the From and To dates.
I’m looking forward to your response.
Have a good day.