This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Magnific Lightbox Auto Open

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #24963
    Jason Bobich
    Keymaster

    Hi Noah,

    Yeah, you’re going to have to write your own custom javascript to handle it. So yeah, you’re on the right track there. I would continue that path and work through whatever javascript errors your’e getting.

    But on your page, I would setup some element that doesn’t have the classes the theme puts on lightbox items. This way, you can simply bind your own instance of Magnific Popup from scratch in your javascript, and not have to worry about jiving with the theme framework javascript file is doing and having previously binded to those classes.

    And you’ll probably want to bind this on the window load —

    $(window).on('load', function() {
    	Bind magnific popup and trigger open method...
    });
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.