Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter Galerio

    (@galerio)

    Thanks, but this is the problem: I haven’t that option in that page!!! My woocommerce is the 2.3.3 version.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    That screenshot was from 2.3. Maybe something such as a theme is hiding it?

    Thread Starter Galerio

    (@galerio)

    I’ll investigate it. I’m using a theme called Enfold that is updated and compatible with latest woocommerce. I’ll ask also to my theme support

    Guilherme Marconi

    (@guilhermemarconi)

    Same problem here.
    I’m using WooCommerce 2.3.5 and the lightbox option is unchecked but still opening.

    Is that something I can do in my functions.php file?

    Thread Starter Galerio

    (@galerio)

    I think the problem is the theme. (mine is Enfold)
    The solution is to disable the lightbox of woocommerce in functions.php theme file. So add this:

    //DISABLE WOOCOMMERCE PRETTY PHOTO SCRIPTS
    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
    
    function my_deregister_javascript() {
    	wp_deregister_script( 'prettyPhoto' );
    	wp_deregister_script( 'prettyPhoto-init' );
    }
    
    //DISABLE WOOCOMMERCE PRETTY PHOTO STYLE
    add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
    
    function my_deregister_styles() {
    	wp_deregister_style( 'woocommerce_prettyPhoto_css' );
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable lightbox on Woocommerce 2.3?’ is closed to new replies.