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

open a gallery in a lightbox from a menu-item

5 months 1 day 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

5 months 1 day ago #2

  • Artem's Avatar
  • Artem
  • Posts: 8382
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

5 months 1 day ago #3

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

the whole album in one lighbox

5 months 18 hours ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 6871
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

5 months 17 hours 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:

5 months 17 hours ago #6

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

You need Enabled Lightbox


Regards,
Vyacheslav, Balbooa.com

5 months 16 hours 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:

5 months 16 hours ago #8

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 6871
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

5 months 16 hours 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

5 months 16 hours ago #10

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

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum