Tagged: Lightbox, prettyphoto
-
AuthorPosts
-
May 4, 2017 at 5:09 pm #787946
Hi,
I have the following problem:
I load images via react_js onto my page (e.g. http://www.joebstl.eu/region/veranstaltungen-der-region/#/show/3-eiben-bike-challenge?_k=1hh961). Now I want to call/restart the lightbox script manually that the images are opened via lightbox (I have no problems in adding rel attributes or other things to a or img tags) but I can’t find whicht lightbox or similar you are using.
Maybe you can provide me the documentation of your plugin or a hint how I can restart it manually.For exampel same call on another page where I use prettyphoto:
$(".sit-tourism--images > a").attr("rel",'prettyphoto[tourismus]'); $("a[rel^='prettyPhoto']").prettyPhoto({ default_width : window.mfn_prettyphoto.width ? window.mfn_prettyphoto.width : 500, default_height : window.mfn_prettyphoto.height ? window.mfn_prettyphoto.height : 344, show_title : window.mfn_prettyphoto.title ? window.mfn_prettyphoto.title : false, theme : window.mfn_prettyphoto.style ? window.mfn_prettyphoto.style : 'pp_default', deeplinking : false, social_tools : false });
May 6, 2017 at 5:36 pm #788866Hey netWKR,
I looked at your site and believe your goal is to get the thumbnails to open in lightbox.
Please try to call the lightbox with the class “.avia_activate_lightbox”.
I didn’t find any specific lightbox documentation, but I found: https://kriesi.at/support/topic/diable-the-enfold-lightbox-urgent/#post-193309 stating that the class “.avia_activate_lightbox” forces lightbox and the class “.noLightbox” prevents lightbox.
In my testing I found that removing the “target=’blank’” from you thumbnail and adding the class “avia_activate_lightbox” forced, or restarted, your lightbox.
(full class: “sit-tourism–lightbox lightbox-added avia_activate_lightbox”)
I’m not sure how you would add this to your code above, but I hope this will help.
Best regards,
MikeMay 11, 2017 at 10:17 am #791570Thx for your answer.
I have now added both css classes to my link, but it doesn’t work :(
I think I have to call $(“body”).avia_activate_lightbox() manually after I add my new images – but this has no effect. Maybe I have to use a different container or other options for function?Thx in advance for your help,
MichaelMay 12, 2017 at 2:25 am #791995Hi,
I wish I could help more, but this kind of customization is beyond the scope of support we can provide here. You can request customization hereBest regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.