Lightbox disable - by BrokenDancer - on WordPress WooCommerce support

This topic has 5 replies, 3 voices, and was last updated 9 years, 7 months ago ago by Brian Johnson

  • Avatar: BrokenDancer
    BrokenDancer
    Participant
    April 15, 2015 at 19:42

    Hi,

    how can I use the original Woocommerce lightbox instead of yours?
    I find some lines in the woo.php file but I’m afraid of changing anything there.
    Problem is that your lightbox doesn’t work very well, when I click on the main image, it pops up but you cannot navigate to the other images. I hope the original works better.
    I’m on local server.

    Thanks
    Jan

    4 Answers
    Avatar: TeeDev
    TeeDev
    Participant
    April 16, 2015 at 03:38

    Have you tried to disable the theme lightbox in the Theme Options then enable the Woocommerce lightbox in Woocommerce > Settings > Products (display tab) ?

    Avatar: BrokenDancer
    BrokenDancer
    Participant
    April 16, 2015 at 08:19

    Yes, but when I click “save” the function gets automatically disabled again.
    I think it’s because there is this line in woo.php:

    // **********************************************************************//
    // ! Remove Default STYLES
    // **********************************************************************//

    add_filter( ‘woocommerce_enqueue_styles’, ‘__return_false’ );
    add_filter( ‘pre_option_woocommerce_enable_lightbox’, ‘return_no’); // Remove woocommerce prettyphoto

    function return_no($option) {
    return ‘no’;
    }

    Avatar: BrokenDancer
    BrokenDancer
    Participant
    April 16, 2015 at 16:58

    Hi,

    does anyone from staff have a solution for this?

    Thanks

    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 16, 2015 at 17:07

    Sorry for the long delay with answer.

    You are right.Please remove these lines to enable default woocommerce lightbox. You will be able to save settings in woocommerce->products->display then.

    With best regards
    Brian Johnson

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

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

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