Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1074742
    Aaron
    Participant

    Hi!

    Looking to implement a popup when user clicks on button – inside the popup I would like a form to come up to reqeust for a demo. I have already hard coded the form html and css and also got the design for it.

    I believe I would need to use lightbox of some sort? Since I already have hte button styled and implemented how do I add the lightbox selector to the button?

    Thanks!

    #1074757
    Joao
    Moderator

    Hi There,

    You need to add a a class to a button and than use this class to launch the lightbox.

    So for example add the class: my-modal to the button – The button should link to the content you want to have on your lightbox.

    than add on your page in a raw content element on Cornerstone or in a div in case you are not using Cornerstone the lightbox selector. [lightbox selector=”.my-modal”]

    Note that the lightbox is not designed to hold html content inside, it might work but it also might present a few bugs.

    An alternative method would be to use Convertplug: https://www.youtube.com/watch?v=53evC1A-4UE

    Hope that helps

    Joao

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