-
AuthorPosts
-
July 16, 2014 at 10:08 pm #292243
Hello,
I’ve looked but can’t find a way to make a link using advanced layerslider open directly into a lightbox. I tried using the classes and different methods but I can’t get LS to do this. Is it possible? Any help would be greatly appreciated. Thanks!
July 16, 2014 at 10:51 pm #292266Hi!
Something like this should work:
<a href="_URL_" rel="lightbox">Link</a>
Cheers!
JosueJuly 23, 2014 at 11:27 am #294858Thank you!
It works. How about linking to a gallery?
July 23, 2014 at 7:03 pm #295080Hi!
Try:
<a href="_URL_" rel="lightbox" data-rel="gallery-1">Link</a> <a href="_URL_" rel="lightbox" data-rel="gallery-1">Link</a> <a href="_URL_" rel="lightbox" data-rel="gallery-1">Link</a>
Cheers!
JosueJuly 24, 2014 at 6:31 am #295287This reply has been marked as private.July 24, 2014 at 6:39 am #295292Hey!
Try putting the remaining empty image links in another layer.
Best regards,
JosueJuly 24, 2014 at 7:59 am #295301How do you mean?
I added layers with links an no images but the lightbox still only shows the 1 image. I don’t think I’m doing it right.
July 24, 2014 at 8:25 am #295306You need to put the data-rel=”gallery-1″ attribute to the three links.
<a href="http://pipe-pros.com/file/2014/03/casingtubingservices.jpg" rel="lightbox" data-rel="gallery-1"><img src="http://pipe-pros.com/file/2014/06/footer_companybrochure.png" width="136" height="20" /></a> <a href="http://pipe-pros.com/file/2014/03/casingtubingservices2.jpg" rel="lightbox" data-rel="gallery-1"></a> <a href="http://pipe-pros.com/file/2014/03/casingtubingservices3.jpg" rel="lightbox" data-rel="gallery-1"></a>
July 24, 2014 at 8:32 am #295312Oh right. I had done it that way at first. And it does work. But my problem is that the icon image isn’t responsive when I do it that way.
You had mentioned adding the remaining empty image links in another layer. It seems like that might work somehow. But I think the only way for the image icon to be responsive is to add it through the image upload on LS and give it the “gallery-1” Rel. I don’t know how it would be possible to make it link to the other images in the other layer. Hope that makes sense.
July 24, 2014 at 8:38 am #295314Take a look at the site right now. I added another layer in the top left that includes the code you sent me. You’ll notice it DOES work but the image is not responsive therefore I can’t use it. My current icon is only linking to the one image in the lightbox.
July 24, 2014 at 8:55 pm #295646Are you referring to the lightbox when you say is not responsive? we included a new and better lightbox script in 2.9.1.
July 24, 2014 at 9:44 pm #295676This reply has been marked as private.July 25, 2014 at 8:24 am #295815Hi!
Thank you for the update.
Can you please add it again? Create a test page with a duplicated layer slider. We would like to check it. Right now, it is responsive.
Best regards,
IsmaelJuly 25, 2014 at 11:36 am #295877This reply has been marked as private.July 25, 2014 at 6:50 pm #296062Hey!
Both icons look the same when viewing the site resized:
Cheers!
JosueJuly 25, 2014 at 10:42 pm #296101Okay please check it now. I placed it where it belongs. You’ll see that it isn’t responsive. But the one that isn’t responsive is the one that has the multiple images in the gallery.
July 28, 2014 at 10:02 pm #297020Hey guys!
Any thoughts for a solution on this? Thanks.
July 29, 2014 at 12:02 am #297075Hi!
Try using three Image layers but put this in Attributes:
Regards,
JosueJuly 29, 2014 at 10:32 pm #297437Hi again,
I tried this but I might be missing something. I have them in 3 layers using the ‘gallery-1’ Rel. What should be in the html part of each layer? And should the first layer have the icon (image link) set in the content tab in LS?
July 29, 2014 at 10:34 pm #297438No HTML content, just use Image Layers + Link. You can set the two remaining layers a class like “hide” to hide it to the user via CSS:
.hide{ display: none !important; }
July 29, 2014 at 10:53 pm #297442Ok I’m still not getting it to link to a gallery. You can take a look at my install if you need to
July 29, 2014 at 10:55 pm #297443This reply has been marked as private.July 30, 2014 at 4:51 am #297554Hi!
Please update Enfold to to 2.9.1.
Cheers!
JosueJuly 30, 2014 at 6:35 am #297585Hello,
Okay I updated. Now the links I had won’t even open up to a lightbox anymore. :/
July 30, 2014 at 6:42 am #297587Hey!
It is working and the gallery too:
Refresh a few times or check it on another browser/session.
Best regards,
JosueJuly 30, 2014 at 7:13 am #297591Ah! Sorry not to have seen it. Thank you so much! Love the new styling too!
You guys are the best.
July 30, 2014 at 7:34 am #297593You are welcome, always glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.