Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #853812

    Hi,
    I tried several things mentioned here in the forum and this other code to put in functions.php

    remove_theme_support( 'wc-product-gallery-zoom' );
    remove_theme_support( 'wc-product-gallery-lightbox' );

    But I can’t get rid of these things.

    Your help is highly appreciated.

    #853866

    Hey Ralf,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #853898

    Thanks a lot Nikko.
    see private below.

    #855154

    Hi,

    Wrap the functions inside the “after_setup_theme” hook.

    add_action( 'after_setup_theme', 'ava_remove_custom_gallery', 100 );
    function ava_remove_custom_gallery() { 
        remove_theme_support( 'wc-product-gallery-zoom' );
        remove_theme_support( 'wc-product-gallery-lightbox' );
    }

    Best regards,
    Ismael

    #855220

    Thank you Ismael,
    unfortunatelly this one did … nothing.

    #855260

    Hi,

    Please post the login details here so that we can test it. Did you set the Shop Options > Product gallery to the second option?

    Best regards,
    Ismael

    #855263
    This reply has been marked as private.
    #855652

    Hi,

    The product gallery is already set to the second option and we added the following filter in the functions.php file to disable the lightbox.

    add_filter( 'body_class', function( $classes ) {
    	if(is_singular('product')) {
    		$classes = array_merge( $classes, array( 'noLightbox' ) );
    	}
        return $classes;
    });

    Best regards,
    Ismael

    #856359

    Wow,
    almost perfect Ismael ! You made my Monday morning a happy one.
    The only thing left is that the image itself is clickable – which I don’t want to.
    Could you please also help me with this?
    Have a nice start into this week.

    #856388

    Hi Ralf,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .single-product .woocommerce-product-gallery__image {
      pointer-events: none;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #856402

    Hi Victoria,
    working perfect. Thanks a lot!
    This thread can be closed.

    Let me say again a big Thank You !!! to all of you.

    #856408

    Hi Ralf,

    Glad we got things working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.