Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #167758

    christopherhussey
    Participant

    Hey Guys

    I would like to create a button that open a lightbox that includes an external page.

    Could you please give me the shortcode for that.

    I have played with a couple things and I just cannot get it to happen.

    Thank you in advance.

    C

    #168195

    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    You can add any url at your button’s href. If it’s not image then lightbox will automatically load inside the iframe.

    Eg.

    [button href="http://google.com/" class="my_awesome_button"]Open Google Page[/button]
    [lightbox selector=".my_awesome_button"]

    Hope this helps.

    #193649

    9Lenses
    Participant

    Is there any way to set the height and width of the iframe for this?

    #194254

    Rubin
    Keymaster

    Hey There,

    Due to the responsive nature of X the width and height gets auto calculated so it fits on every device and provides a good user-experience on small and big devices, there is no option to set a fixed width or height.