Disable lightbox - by bgunning - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 9 years, 8 months ago ago by Eva Kemp

  • Avatar: bgunning
    bgunning
    Participant
    April 9, 2015 at 18:16

    I want my single product page to scroll thru the images like the demo (which for some reason I can’t paste the link here) and NOT use the popup. I have disabled the popup under theme options, but that isn’t working. Thank you

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    April 10, 2015 at 10:16

    Hello,

    As I see there are arrows that allow to scroll through images on single product pages:
    https://s3.amazonaws.com/fvd-data/notes/168674/1428657299-l0JD05/screen.png

    Could you please clarify with more details?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: bgunning
    bgunning
    Participant
    April 10, 2015 at 15:06

    Hi Eva – yes the scroll arrows are there but when the small image is clicked, it pops open a lightbox. I would like it to replace the larger image. Is that possible?
    Thank you!

    Avatar: Eva
    Eva Kemp
    Support staff
    April 10, 2015 at 15:37

    Hello,

    Please provide us with wp-admin panel credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: bgunning
    bgunning
    Participant
    April 10, 2015 at 15:43

    Here is my admin info

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    April 10, 2015 at 18:37

    Hello,

    I’ve added this code in functions.php of your child theme:

    /* 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 );
    ?>

    Now lightbox isn’t shown.
    Please clear browser cache and check.

    Thank you.
    Regards,
    Eva Kemp.

  • 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.