Untitled. Creative Agency Theme

Continue Reading
Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

open a gallery in a lightbox from a menu-item

1 year 3 months ago #1

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

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

Michael

1 year 3 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 8659
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 year 3 months ago #3

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

the whole album in one lighbox

1 year 3 months ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 10581
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 year 3 months ago #5

  • tschiwi's Avatar
  • tschiwi
  • Posts: 16
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 year 3 months ago #6

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

You need Enabled Lightbox


Regards,
Vyacheslav, Balbooa.com

1 year 3 months ago #7

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

1 year 3 months ago #8

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 10581
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 year 3 months ago #9

  • tschiwi's Avatar
  • tschiwi
  • Posts: 16
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 year 3 months ago #10

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

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum