Hello there,
I am seeking to use the built-in avia lightbox in order to manually initiate the lightbox to open to a custom url using an iframe.
Is there some javascript function I can use to invoke this?
I wish to open a custom URL in the lightbox – but the custom URL is a page that should be loaded via iframe.
For example, I’d expect something such as :
$(".custom_link").open_avia_lightbox({
destination_url: "https://www.google.com/",
iframe: true
});
To clarify, I understand that I can just add rel=”prettyPhoto” and use ?iframe=true in the HREF, however I do not want to use this method because we are doing other logic in the JavaScript on the fly. Opening the lightbox is dependant on our other logic.
Thank you in advance!
does anyone have any insights here?
Hi,
Thank you for using Enfold.
The magnificPopup script documentation can be found here.
// http://dimsemenov.com/plugins/magnific-popup/documentation.html#iframe-type
Activate the magnificPopup with the iframe parameter and create a new pattern.
Best regards,
Ismael
Thank you so much, @Ismael.
This is now solved!
For anyone who may want the same solution:
$.magnificPopup.open({
items: { src: "/images/image.jpg" },
type: 'iframe'
});
Hi,
I’m glad you get this corrected. If you need additional help, please let us know here in the forus.
Best regards,
Jordan Shannon