Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #456958

    i have to install for a customer a facebook feed – so i want to disable the integrated lightbox effect on that page because the plugin comes with its own. Is that possible ?

    #457365

    Hi Guenter!

    In header.php, look for:

    $av_lightbox= avia_get_option('lightbox_active') != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox';
    

    Replace it by:

    $av_lightbox= avia_get_option('lightbox_active') != "disabled" && !is_page(734) ? 'av-default-lightbox' : 'av-custom-lightbox';
    

    Change 734 by the Page ID of the specific page you want the lightbox disabled.

    Best regards,
    Josue

    #457407

    Thanks Great this will work but is there a possibility to do it by a hook or have i to make in child theme a header.php?

    #457411

    I wish there would be a hook for this but -currently- there isn’t, so yeah using child theme header.php is the way to go.

    Regards,
    Josue

    #457415
    This reply has been marked as private.
    #457418

    Cool, glad to help :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘disable integrated Lightbox effect for a specific page’ is closed to new replies.