Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    Thanks for contacting us and I hope you’re doing well ??

    Unfortunately I don’t have a copy of your theme so I cannot test the problem on my local installation.

    Maybe it’s a conflict with other plugins or directly with your theme.

    Also I checked and you use a child theme. Maybe there is a custom code added on your theme and generate a conflict.

    In this case, you can try to isolate the problem in the following way:

    1.- Try to switch to parent theme and see if it fix the problem.
    2.- Please, try to deactivate all plugins and see if the problem disappear. If so, try to activate them again one by one and see which one produces the issue.
    If the problem is not from a plugin, try to activate the default theme Twenty Sixteen or Twenty Seventeen and see if you have the same issue.

    Also, if you have customized files in your theme, please try with a fresh installation without customization.

    Remember that if you have a plugin for the cache, you need to delete the cache before to disable it.

    Please, try it and let me know.

    Have a good day.

    Thread Starter midrocket

    (@midrocket)

    Hi Carlos thanks for your answer.

    I think the problem is that the badge is trying to be shown in the product gallery images when it shouldn’t.

    Have a look please: https://ibb.co/F8WJYXx

    Thank you very much

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well ??

    Yes, it seems the theme are using a hook that our plugin use for show the badge and add the class here.

    Please, try to add the following code in the functions.php of your active theme

    if( class_exists('YITH_WCBM_Frontend') ) {
    	remove_filter('woocommerce_single_product_image_thumbnail_html', array(YITH_WCBM_Frontend::get_instance(), 'show_badge_on_product_thumbnail'), 99, 1);
    }

    Maybe it will remove the container and badge from gallery.

    Please, try it and let me know.

    Have a good day.

    Thread Starter midrocket

    (@midrocket)

    Thanks a lot Carlos, the function works!

    Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,
    You’re welcome! We’re glad the issue is solved.
    I’ll mark this topic as resolved, but don’t hesitate to create a new topic if you need more help.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Product image gallery not working in products with badges’ is closed to new replies.