Feature Box And Icon List Plugins

Read More
Mon. - Fri. 9 am - 5 pm Support Policy
Remember me

open a gallery in a lightbox from a menu-item

1 month 4 days ago #1

  • tschiwi's Avatar
  • tschiwi
  • Posts: 13
Hi,

is it possible to open a gallery in a lightbox by clicking a menu-item?

Michael

1 month 4 days ago #2

  • Artem's Avatar
  • Artem
  • Posts: 7842
Hi, Michael!

I think yes, in the Gallery you want to open a specific picture from the Gallery or the whole album?

Regards,
Artem, Balbooa.com

1 month 4 days ago #3

  • tschiwi's Avatar
  • tschiwi
  • Posts: 13
Hi Artem,

the whole album in one lighbox

1 month 3 days ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 5845
Hello,
Thank you for contacting us

You add gallery ( album mode ) to page, using Developer tool get data-filter.


add menu item with Link CSS Style : gallery-trigger

and at the your template custom JS file add code:
jQuery(document).ready(function(){
	jQuery(".gallery-trigger").on('click', function(event){
		event.preventDefault();
    	jQuery('.ba-album-items[data-filter=".category-5"]').trigger('click');
    })
})

Regards,
Vyacheslav, Balbooa.com

1 month 3 days ago #5

  • tschiwi's Avatar
  • tschiwi
  • Posts: 13
Thank you Vyacheslav,

I tried that - but I can't find the "data-filter" in the source code of the page (see screenshot)

Michael
Attachments:

1 month 3 days ago #6

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 5845
Hello,

You need Enabled Lightbox


Regards,
Vyacheslav, Balbooa.com

1 month 3 days ago #7

  • tschiwi's Avatar
  • tschiwi
  • Posts: 13
that didn't do anything ... does this have to do with the fact that I only have 1 category in that gallery?
Attachments:

1 month 3 days ago #8

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 5845
If you show only one category from the gallery this code will not work.
You need to use the entire gallery with the enabled album mode and the enabled lightbox.

Regards,
Vyacheslav, Balbooa.com

1 month 3 days ago #9

  • tschiwi's Avatar
  • tschiwi
  • Posts: 13
OK thanks for the update. So then let me ask you that way ... is it possible to open one category directly (album mode or not) from a menu item - without opening a page and click on a photo first?

Michael

1 month 3 days ago #10

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 5845
Unfortunately there is no such possibility.

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum