Tagged: Lightbox
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 :)
Peta
Are 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.
Thank 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,
Peta
Hi,
Glad @guenni007 could help! Let us know if you have any other questions and enjoy the rest of your day :)
Best regards,
Yigit