Product Images Open in Lightbox when Lightbox is Disabled

This topic has 6 replies, 3 voices, and was last updated 9 years ago ago by Robert Hall

  • Avatar: TeeDev
    TeeDev
    Participant
    April 16, 2015 at 03:59

    I have the lightbox disabled in Woocommerce settings and in Woopress Theme Options.

    However, product images in the product image gallery still open in the Woopress lightbox instead of showing in the main image window (this works correctly on your Royal theme, however).

    How can this be resolved?

    5 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    April 16, 2015 at 08:46

    Hello,

    This is a bug in our theme. It will be fixed in the next theme update.
    Sorry for the inconvenience.

    Regards,
    Robert Hall.

    Avatar: TeeDev
    TeeDev
    Participant
    April 16, 2015 at 10:04

    Ok, so you have a rough timeframe on that?

    Another similar bug is that when the product image zoom is set to Window mode, there should not be a square box for the control like there is for the lens mode.

    The square is useful when you are in lens mode but when in window mode it is confusing and becomes irritating, particularly because it necessarily obscures some of the image you want to see.

    Avatar: Eva
    Eva Kemp
    Support staff
    April 16, 2015 at 11:18

    Hello,

    You can try to add this code in functions.php file as temporary fix for lightbox issue:

    /* Remove WooCommerce styles and scripts. */
    function woo_remove_lightboxes() {
             
            // Styles
            wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
             
            // Scripts
            wp_dequeue_script( 'prettyPhoto' );
            wp_dequeue_script( 'prettyPhoto-init' );
            wp_dequeue_script( 'fancybox' );
            wp_dequeue_script( 'enable-lightbox' );
    }
      
    add_action( 'wp_enqueue_scripts', 'woo_remove_lightboxes', 199 );
    ?>

    Concerning zoom effect we’ve taken this into our account and will try to fix it in future update.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: TeeDev
    TeeDev
    Participant
    April 16, 2015 at 12:40

    That worked perfectly, thank you.

    The only thing is adding the closing php tag when using a child theme breaks the site, so the ?> on the last line should not be used.

    Thank you!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    April 16, 2015 at 12:57

    Hello,

    You’re welcome!

    Regards,
    Robert Hall.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.