Tagged: Lightbox
-
AuthorPosts
-
December 15, 2022 at 9:25 am #1376252
Hello
I am using the FooGallery plugin so I can add tags and categories to media and use the filter function on my client’s portfolio gallery.
On the page using FooGallery I am using their PRO lightbox (The link to the page is in the private content below), when you click on an image to enlarge in the lightbox the FooGallery lightbox displays but when you close it the Enfold lightbox remains and needs to be closed as well.
The FooGallery plugin is only being used on one page of the site, so if I choose to disable the Lightbox Modal Window in the Enfold settings this will affect the other pages that use this function.
Is there a way to disable the Enfold lightbox just on the one page of the website?
Thank you for your help as always :)
PetaDecember 17, 2022 at 11:32 am #1376457Are these images, which should be opened with the other plugin, in a common container ? e.g. a color-section?
if this is true you can set a custom class to hamper the lightbox script of enfold for only that container : set for that parent container the class: noLightbox – be carefull – it is casesensitive !Or for the whole page use in child-theme functions.php:
function avia_default_lightbox_scripts($use_standard_lightbox){ if(is_page(ID, "pagename")){ $use_standard_lightbox = "disabled"; } return $use_standard_lightbox; } add_filter('avf_use_standard_lightbox', 'avia_default_lightbox_scripts', 10, 1);use page ID ( without quotes ) or the name of the page ( with quotes ) for the if clause.
December 17, 2022 at 4:26 pm #1376477December 20, 2022 at 1:21 pm #1376874Thank you @guenni007 it is in a color-section so that worked perfectly!! Your help is very much appreciated once again.
This ticket can be closed now :)
Best regards,
PetaDecember 20, 2022 at 2:09 pm #1376885Hi,
Glad @guenni007 could help! Let us know if you have any other questions and enjoy the rest of your day :)
Best regards,
Yigit -
AuthorPosts
- The topic ‘Disable Enfold Lightbox on one specific page’ is closed to new replies.
