Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 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
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.