Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29402

    Hi,

    how can I disable only on one certain page the lightbox overlay, but not the lightbox function at all for images, that I have included in my page?

    Thanks.

    #140576

    #140577

    In enfold/js/avia.js replace

    if($.fn.avia_activate_lightbox)
    $(container).avia_activate_lightbox();

    with

    if($.fn.avia_activate_lightbox){
    if( !$('body').hasClass('page-id-1437') ) $(container).avia_activate_lightbox();
    }

    and instead of 1437 insert the id of the page where you want to deactivate the lightbox effect.

    #140578

    thanks, but this is the opposite of what I would like to have:

    - no overlay functionality at this page-id

    – but still the lightbox function itself, means, when clicking on an image, it should open in the lightbox as usual

    Just no overlay function:

    Thanks.

    #140579

    Hey!

    Ok, then revert the change and replace

    avia_hover_effect(container);

    with

    if( !$('body').hasClass('page-id-1437') )  avia_hover_effect(container);

    Best regards,

    Peter

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

The topic ‘How to disable only on one certain page the lightbox overlay?’ is closed to new replies.