Page 1 of 1

Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 2:14 pm
by syncopic
Hello Forum, Hello Pablo,

On my website i want the following behaviour, but i can´t get a solution.

- On a page i´ve inserted a picture
- If you click on this pic, another page of the project should open as lightbox (magnificpopup, fancybox)
- If i configure the link as lightbox "standard", it´s working, but without size definition - which looks really bad
- If i configure any other lightbox (magnificpopup, fancybox, ...) just the pic (on which you´re clicking) is opening as popup, but not the desired page, cause the link is set to the pic.

Are magnificpopup and fancybox not able to open a html-site within the project ? I´m just confused.
Any help would be great. Thanks !

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 2:17 pm
by Pablo
Each lightbox has its own set of settings.
For fancybox you can configure the size, but not for magnificpopup

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 2:25 pm
by syncopic
Hello Pablo,

the problem is, that the link to the other page "kovacs" will be ignored and the link is set to the same pic, which should open the page "kovacs".

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 3:20 pm
by Pablo
To be able to help you I need to see what you have done.

Related FAQ:
viewtopic.php?f=10&t=82134

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 3:28 pm
by syncopic
Hello Pablo,

the zip-file of the project is here:
https://www.pro-e-fact.de/bugs/MuFo_2019.zip

Please go to "unterricht"/"bass" - the portrait on right side should be the link to the page "lehrer"/"kovacs".
Sorry, but there are many pages within the project :?

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 3:32 pm
by Pablo
I'm sorry, but the settings are not correct.
The lightbox should be set to 'defauit' otherwise it will trigger a global light-box for images, instead of the linked page.

Related tutorial:
http://wysiwygwebbuilder.com/global_lightbox.html

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 3:40 pm
by syncopic
Hello Pablo,

ok ... i tried this, but i want to set the popup size exactly, so i inserted in "options field":

width: 330,
height: 500

but the popup size was not like this. Am i wrong with this settings or exactly spelling ?

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 3:48 pm
by Pablo
For fancybox you can configure the size, but not for magnificpopup
You can select 'fancybox' in the page properties.

Re: Link as Lightbox doesn´t work

Posted: Wed Sep 25, 2019 3:58 pm
by syncopic
Oooookay ... now i got it !

- In the general page settings i have to change to "fancybox"
- in the "link settings" of the pic i have to set to "default"
- then i can use all the "fancybox codes" in the options field

This procedure anyone has to know ;-) I thought, that the general page settings have no effect for single implementation.

Thanks a lot for quick support !

Re: Link as Lightbox doesn´t work

Posted: Wed Oct 16, 2019 8:38 pm
by Markus
Thanks for this thread. :-) I had the same question today.
Now fancybox runs like a charme.

Markus

Re: Link as Lightbox doesn´t work

Posted: Wed Oct 16, 2019 8:55 pm
by syncopic
Hi Markus,

if you know about the "general page settings" ... it´s easy, but if you don´t know ... :shock:

Happy web building ! :mrgreen: