Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #850501

    craig.michaelis
    Participant

    I’m using Quform, and have the ability so after a form is successfully submitted I can execute javascript commands. That’s working. What I would like to do is have javascript open a lightbox and the only thing contained in the lightbox is an html page I href. Is this possible within the X Theme or is the lightbox always called from a shortcode?

    Thanks!

    #850555

    Lely
    Moderator

    Hi Craig,

    Please setup the lightbox on the page:

    <a href="http://site.com/linktoyourpagethatwillopeninalightbox" class="link-lightbox">TEST</a>
    [lightbox selector=".link-lightbox"]

    Javascript code to open the lightbox should be:
    $('.link-lightbox').click();

    Hope this helps.

    #850610

    craig.michaelis
    Participant

    Looks like it will! Thanks!! 🙂

    #850611

    Lely
    Moderator

    You’re welcome Craig!

    Always,
    X