Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #681506
    Joey
    Participant

    Hi

    I am trying to figure out how to trigger a lightbox containing an opt-in form (aweber) from a button on my main page’s revolution slider.

    I have managed to get the button to look how I want it but I can’t figure out how to trigger a lightbox from that button. (seems simple enough if it was not on the slider). And then work out where I need to place my opt-in code.

    Please could you also take a look at what i’ve done with the button inside the revolution slider and tell me if that is the best practice? Or if I should be doing it a different way. I’ve literally just pasted the code straight onto it as text and it seemed to work.

    Many Thanks

    #681509
    Joey
    Participant
    This reply has been marked as private.
    #681740
    Rad
    Moderator

    Hi Paul,

    Thanks for writing in.

    I tried but not working, specially if you’re working on 3 different libraries. What you could do is add a hidden button and lightbox at your page, then change your slider’s href to this.

    href="javascript:jQuery('.class-of-hidden-button').trigger('click');"

    Now the problem is how to setup the optin in a lightbox since the lightbox is currently not working with inline HTML. You could try using other lightbox that support forms and other inline content.

    Thanks.

    #681745
    Joey
    Participant

    Ok, Thanks, i’ll give it a go and see how I get on.

    To clarify… maybe lightbox is the wrong term?, I simply mean a popup which contains an opt in form. I’ll see what plugins are about.

    #681825
    Rad
    Moderator

    Hi there,

    Yes pop up, but they are using same implementation same as lightbox, modal DOM and inline content.

    Hope you find what you’re looking 🙂 thanks!

  • <script> jQuery(function($){ $("#no-reply-681506 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>