Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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 :)
    Peta

    #1376457

    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.

    #1376477

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1376874

    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

    #1376885

    Hi,

    Glad @guenni007 could help! Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Disable Enfold Lightbox on one specific page’ is closed to new replies.