• Resolved coredesign

    (@coredesign)


    We are building our Woocommerce shop with additional gallery images for every product and we enable “Show first gallery image on hover” for the main shop page. When a product has a badge enabled, the hover effect no longer works.

    Example:
    Multi Purple Drop Earrings has a second image that appears when you hover over the primary product image. When the [RUNWAY] badge is enabled for this item, the hover effect is no longer shown. When the badge is set to ‘none’ the hover effect returns.

    All products will eventually have multiple gallery images added and the hover effect is important to the presentation of the products. The ability to add the [RUNWAY] badge to some items is also important. Can we have both?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    and thank you for writing in!

    Please try adding the following code snippet to your theme functions.php

    if ( !function_exists( 'yith_wcbm_shop_badge_container_start' ) && !function_exists( 'yith_wcbm_shop_badge_container_end' ) ) {
        add_action( 'woocommerce_before_shop_loop_item_title', 'yith_wcbm_shop_badge_container_start', 9 );
        add_action( 'woocommerce_before_shop_loop_item_title', 'yith_wcbm_shop_badge_container_end', 20 );
        function yith_wcbm_shop_badge_container_start() {
            do_action( 'yith_wcbm_theme_badge_container_start' );
        }
    
        function yith_wcbm_shop_badge_container_end() {
            do_action( 'yith_wcbm_theme_badge_container_end' );
        }
    }

    and let us know if this does the trick! ??

    Thread Starter coredesign

    (@coredesign)

    Thank you for your reply. That code snippet appears to have done the trick!

    Thread Starter coredesign

    (@coredesign)

    We will be upgrading to the premium version shortly, now that we know we can achieve the effect we need.

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    you are welcome! ??
    We’re very happy to read that you like the plugin, we always try to do our best to have fully functional products.

    If you like the plugin and our support, please, support us with a 5-star review. It takes just a minute. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding badge disables display gallery image on hover’ is closed to new replies.