• Resolved chelseakleinsasser

    (@chelseakleinsasser)


    Hi,
    I tried this code from the FAQ:

    Can I have a box open after clicking a certain link or button?
    Sure, by linking to the box element.
    Example (box ID is 94 in this example)
    Open Box

    and it isn’t working for me.
    The code I used to use with scroll triggered box was:
    javascript:STB.showBox(3109);

    Thanks
    Chelsea

    https://ww.wp.xz.cn/plugins/boxzilla/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Chelsea,

    Do you have a link to your site where we can see this happening? An alternative way to open a box on a button or link click is by using the following.

    javascript:Boxzilla.show(3109);

    Hope that helps. If not, let me know!

    Thread Starter chelseakleinsasser

    (@chelseakleinsasser)

    That worked perfectly!

    Thank you so much.

    Plugin Author Danny van Kooten

    (@dvankooten)

    I’m glad it did Chelsea, thank you for letting me know!

    PS. Should you have a quick minute to spare, a plugin review here on ww.wp.xz.cn would make me very happy. We have some catching up to do with Scroll Triggered Boxes! 🙂

    kaercherj

    (@kaercherj)

    I too would like to have a box open when a button is clicked. But the directions above aren’t working for me.

    My website is http://colonielibrary.org/. I’d like box 6848 to show when the Newsletter button is clicked.

    I used the javascript code you noted above (w the correct box number), and now the box shows on the home page. How can I get rid of that?

    Apologies for the total newbie question, but where do I insert the link?

    Eg I have boxzilla box number 4488, the code I have to insert is Open box

    Here is my button code – where does the link go?
    [button style=”btn-default btn-lg” type=”link” target=”false” title=”GET YOUR FREE REQUIEM!” link=”#” linkrel=””]

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Open box on button click’ is closed to new replies.