Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #945551

    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 :

     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?



    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,


    Thank you so much, @Ismael.

    This is now solved!

    For anyone who may want the same solution:

    			  items: { src: "/images/image.jpg" },
    			  type: 'iframe'


    I’m glad you get this corrected. If you need additional help, please let us know here in the forus.

    Best regards,
    Jordan Shannon

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Lightbox – Open manually via JS’ is closed to new replies.