New Landing How can we help? Atelier Turn off the lightbox

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #213893
    staroni
    Member
    Post count: 35

    How to completely turn off the Lightbox functionality?
    Specially on product page

    Attachments:
    You must be logged in to view attached files.
    #213985
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Add the code below to the functions.php of your child theme.

    add_action('wp_print_scripts','example_dequeue_myscript');
    function example_dequeue_myscript() {
       wp_dequeue_script( 'sf-ilightbox' );
    }

    Hope it helps.

    -Rui

    #213999
    staroni
    Member
    Post count: 35
    This reply has been marked as private.
    #214385
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Woocommerce -> Settings -> Products Tab -> Display -> Here you can disable the lightbox for product images.
    Thanks
    Mohammad

    #214483
    staroni
    Member
    Post count: 35

    no
    when you using on mobile version – when you slide the image – on third image it opens lightbox

    #214512
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Just tried that code on mine and it disables it, you also have to turn of the the Load Minified Scripts option so it loads the uncompressed functions.php
    https://www.dropbox.com/s/fcrhd3y3hm4gxyg/Screenshot%202015-09-18%2013.53.47.png?dl=0

    Also in my development site I change the Slider options, in Theme options-> Woocommerce options-> Product options
    https://www.dropbox.com/s/uvkuos914mrorfu/Screenshot%202015-09-18%2013.53.02.png?dl=0

    Give it a try

    -Rui

    #214515
    staroni
    Member
    Post count: 35

    ok, sorry

    maybe I’m not correctly as a question

    i like the slider functionality in theme – its great and nice!
    i just don’t want that it open in whole screen

    every time when i slide to thrird image of the product- it opens the fullscreen lightbox(or what is it?)

    how can i turn off the fullscreen opening?)
    thank you in advance

    Attachments:
    You must be logged in to view attached files.
    #214527
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Manage to disable everything with this css that I added to your custom css option.

    .ilightbox-holder, .ilightbox-button, .ilightbox-loader, .ilightbox-overlay, .ilightbox-container, .ilightbox-toolbar {
           display: none!important;
    }

    Have a look again.

    -Rui

    #214529
    staroni
    Member
    Post count: 35

    Thank you
    Great!))

    #214533
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Glad it’s sorted.
    -Rui

    #285127
    nelga
    Member
    Post count: 31

    Hey this CSS to disable the lightbox doesn’t seem to be working anymore?

    Is this the best way to disable the lightbox? Is there perhaps a way to also ensure that the related-js isn’t downloaded also (for optimisation).

    #285302
    David Martin – Support
    Moderator
    Post count: 20834

    1)

    Add the code below to the functions.php of your child theme.

    add_action('wp_print_scripts','example_dequeue_myscript');
    function example_dequeue_myscript() {
       wp_dequeue_script( 'sf-ilightbox' );
    }

    2)

    Turn of the the Load Minified Scripts option so it loads the uncompressed files. Theme Options => Performance Options.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register