New Balbooa Forms Released

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

Lightbox displayed from the link in the article content.

1 week 4 days ago #1

  • Radek's Avatar
  • Radek
  • Posts: 3
Hello,

I would like to display the lightbox using the link in the article, it can be done, it copies the link of the displayed image in the lighbox.

The problem is that the whole is scrolled to the top of the screen and introduces chaos to the user, because after closing the window the lightbox is in a completely different place.

Is it possible to get such a hyperlink so that it doesn't scroll up?

1 week 3 days ago #2

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

Send us a link to page with problem.

Regards,
Vyacheslav, Balbooa.com

1 week 3 days ago #3

  • Radek's Avatar
  • Radek
  • Posts: 3
For example here:

nowaakacjowa.pl

In the table, the "plan mieszkania" link displays a lightbox window and scrolls up.

1 week 3 days ago #4

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

Thank you for contacting us

Unfortunately there is no such option
This is not functionality of gallery (you added a custom lightbox opening).
Support provides support for default functionality.

Best Regards,
Vyacheslav, Balbooa Support Team

1 week 3 days ago #5

  • Radek's Avatar
  • Radek
  • Posts: 3
I know this is not a standard gallery function.

It is helpful for many projects.
Please think about its implementation in the future.

Attached is a screenshot of how they did it in another module that I used before.

This way of calling the lightbox through the link would also be useful for the BaForm lightbox, because the button is not always the solution for projects.

thanks, greetings
Attachments:

1 week 3 days ago #6

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

You need to add class custom-lightbox-trigger for button/link
You need to add class custom-link-lightbox for gallery image.

You need to add the JS code.
document.addEventListener('DOMContentLoaded', function(){
  jQuery('.custom-lightbox-trigger').on('click', function(event){
      event.preventDefault();
   jQuery('.custom-link-lightbox').trigger('click');
  })
});

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum