-
AuthorPosts
-
November 27, 2015 at 12:49 pm #681506
JoeyParticipantHi
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
November 27, 2015 at 12:50 pm #681509
JoeyParticipantThis reply has been marked as private.November 27, 2015 at 4:24 pm #681740
RadModeratorHi 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.
November 27, 2015 at 4:37 pm #681745
JoeyParticipantOk, 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.
November 27, 2015 at 7:29 pm #681825
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-681506 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
