Home › Forums › Lite Version › Lightbox iFrame
- This topic has 7 replies, 1 voice, and was last updated 5 years, 9 months ago by
Luke.
- AuthorPosts
- July 21, 2015 at 5:31 pm #6283
Luke
GuestHi,
I’m trying to use your plugin to display a custom post type (an ambassador for a project) and I need each element to display as a lightbox iFrame. I have modified your plugin to display everything as needed but:
I don’t know why, but witin the area of your shortcode the iFrame rel (i’m using the prettyPhoto plugin) is not working. But if i put it below it works without any problem. (the “TEST LINK” on the site)
I’ve been trying lots of things like changing prettyphoto trigger to data-rel and so on. I can’t seem to find any problem, except chrome is showing an issue: Uncaught TypeError: $container.imagesLoaded is not a function – I’ve tried to enqueue the imagesLoaded script but that didn’t help either.
I will be super grateful for any hint as I don’t know what to do with this.
Many thanks,
LukeJuly 22, 2015 at 5:39 am #6295Masonry Guy
KeymasterHi Luke,
Can you please post url of that page as well. Will help me much to check it in details.
Thanks
July 22, 2015 at 6:57 am #6297Luke
GuestI thought I did – it is in the website slot:
http://wp.creativedsgn.pl/index.php/ambasadorzy/
Thanks!July 22, 2015 at 10:07 am #6299Masonry Guy
KeymasterHi Luke,
Those post are loaded from ajax. So you need to re-initialize prettyPhoto plugin to work. For that you need to keep prettyPhoto initialize code in wp-masonry-layout/js/wmljs.js
Thanks
July 22, 2015 at 10:31 am #6300Luke
GuestAny chance you could tell me how to do that?
Thanks,
LukeJuly 22, 2015 at 11:01 am #6302Luke
GuestOK, I think I managed to do it.
I’ve put: jQuery(“a[rel^=’prettyPhoto’]”).prettyPhoto(); around 37th line of code and it seems to be working fine.
Thank you very much for your input!
Great plugin by the way. Maybe you could think of implementing it into the pro version – that seems like a cool feature for a masonry layout.
LukeJuly 22, 2015 at 11:47 am #6303Masonry Guy
KeymasterLuke,
Glad it is fine for you now. We do have that feature in Pro version but for image only currently.
If you have a few mins for us, can you please write us a review for our plugin at https://wordpress.org/support/view/plugin-reviews/wp-masonry-layout?filter=5? This will help us grow and makes easier for others to decide to use the plugin.
Thanks
July 22, 2015 at 12:05 pm #6304Luke
GuestSure, I’d love to leave you with some good feedback.
Thanks again for your help.
Best,
Luke - AuthorPosts
- The forum ‘Lite Version’ is closed to new topics and replies.