-
AuthorPosts
-
September 28, 2015 at 11:26 am #509941
Hi there,
I wonder how you did manage the video modal link on the demo http://kriesi.at/themes/enfold-startup/
I can´t find an option to open a link in a modal/lightbox.
Cheers
MichaelSeptember 28, 2015 at 1:55 pm #510072Hi Michael,
If you can edit the link itself you can try adding rel=”lightbox” to it:
<a href="http://yoursite.com/link" rel="lightbox">Click me to open in lightbox</a>
Best regards,
RikardSeptember 28, 2015 at 2:27 pm #510098Hi Rikard,
sure I can do that but there must be some kind of option/setting I assume because in the demo I mentioned the a element has the following classes assigned
.av-icon-char .mfp-iframe .lightbox-added
So the question is, where does that come from?
Cheers
MichaelSeptember 28, 2015 at 2:31 pm #510102Sorry but of course I can NOT edit the link because it´s part of a shortcode (icon element). And If I use a regular link the rel=”lightbox” doesn´t seem to work with youtube videos.
- This reply was modified 9 years, 1 month ago by Michael Oeser.
September 28, 2015 at 5:02 pm #510278Hey!
the rel=”lightbox” should work for youtube videos as well, check out this (look for YouTube content): http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/#prettyPhoto
Regards,
AndySeptember 28, 2015 at 5:53 pm #510332Hi Andy,
as I mentioned I want to know how you did it in the demo at http://kriesi.at/themes/enfold-startup/ adn this looks as if there is some kind of setting. It is obviously NOT made with a rel=”lightbox” added to an tag.
I´m talking about the round big icon in screenshot 1. When you click on it the modal with a video opens (see screenshot 2)
1.) https://dl.dropbox.com/s/m6h6obgwo9eb3bb/index.html?dl=0
2.) https://dl.dropbox.com/s/3xdx8gmeor2gvpg/index.html?dl=0Cheers
MichaelSeptember 29, 2015 at 6:17 am #510529Hey,
That should be added automatically if you are linking to an image or video. Try adding a new icon and set the link to Set Manually and paste an image or video URL there.
Thanks,
RikardSeptember 29, 2015 at 3:15 pm #510778Hey Rikard,
interesting thing. It works with Vimeo but not with YouTube Videos.
See: http://www.der-prinz.de/video-test-2/
Cheers
MichaelSeptember 30, 2015 at 5:41 am #511109Hi!
The format of the youtube url should be like this:
http://www.youtube.com/watch?v=G0k3kHtyoqc
Try this instead:
https://www.youtube.com/watch?v=ecsCrOEYl7c&feature=youtu.be
Cheers!
IsmaelSeptember 30, 2015 at 8:14 am #511169Yepp. Works. Thanks.
September 30, 2015 at 9:54 am #511250 -
AuthorPosts
- The topic ‘How to add modal/lightbox to links’ is closed to new replies.