If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Tagged: ,

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #188343

    Hi Enfold developers,

    Are there ways to disable the lightbox? I have tried the methods that I found on the forum, but all doesn’t work.

    I want to remove all the lightbox effect of the themes. Thanks!

    Regards,
    Becky

    #189244

    Hey beckyleeik!

    You can just remove this line in your js>avia.js file:

    
    
            //activates the prettyphoto lightbox
            $(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});
    
    

    Regards,
    Devin

    #189964
    This reply has been marked as private.
    #190228

    Yes, that is the location. You can go the somewhat more brute force method and just delete the prettyPhoto script function further down in the file (function avia_hover_effect ) but the above should work.

    Can you provide a link to the site so we can inspect it live?

    #193270
    This reply has been marked as private.
    #193272

    Hi Devin,

    May I ask where is the function avia_hover_effect file?

    Thanks!

    #193309

    Hey!

    Please do Devin’s instruction. Edit js > avia.js, find this code:

    //activates the prettyphoto lightbox
            $(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});

    Replace it with:

    //activates the prettyphoto lightbox
           //$(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});

    This should disable the lightbox entirely. Make sure to remove browser cache then reload the page or check the site on another browser. You can find the avia_hover_effect on the same file.

    Cheers!
    Ismael

    #237705

    Ismael, thank you.
    It’s working.
    How to add this code to child theme?

    #237952

    Refer to Ismael response:
    http://www.kriesi.at/support/topic/ (Purchase code hidden if logged out) -theme/#post-230498

    Regards,
    Josue

    #314156

    Will this disable the lightbox in woocommerce products?

    #314194

    Hi!

    Now you can disable the lightbox script right from the theme options.

    Cheers!
    Josue

    #314707

    Hi where in the theme options?

    #314737

    Hi!

    Enfold > Theme Options > Lightbox Modal Window

    Regards,
    Josue

    #515465

    Am I possibly doing something wrong here? I turned off the function that Josume referred to, and yet my photos are still clickable. I force cleared my cache, and yet the photos are still showing up in the lightbox.

    #515485

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #515872

    http://wp.scottandchristie.com:90/

    • This reply was modified 8 months, 2 weeks ago by  jpdietz.
    #516135

    Are you referring to this images?

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

You must be logged in to reply to this topic.