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

    Liz B
    Participant

    Hello!

    I’m trying to have a specifically-sized pop-up window open when users click on a button in Revolution Slider. I’ve managed to accomplish this, minus the browser size.

    My shortcode appears as such:
    Listen Live

    The code I use on my old site for the pop-up window is:
    <!–
    function PopWindow()
    {
    window.open(‘http://example.com’,’Radio’,’width=700,height=175,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=55,left=55′);
    }
    //–>
    </script>

    I’ve tried a few different ways to include the width, height, etc without much luck. Any advice? Thank you!

    #37906

    Liz B
    Participant

    Sorry, I’ve tried to edit my previous post with the code tags and it is holding onto my first version for some reason.

    *My button in the Revolution Slider appears as such:
    <a href='javascript:window.open("http://example.com");' class='tp-button red small'>Listen Live</a>

    #38022

    Support
    Member

    Hi Liz,

    Thank you for writing, this is really a simple solution and your code has sintax errors, in this link you can find aditional info how to setup this kind of pop-up window. Hope it helps.

    #40838

    Liz B
    Participant

    Thank you for the response. I followed the instructions, but the window is still opening as a full-size browser. Where would I place the following code in order for it to work with the Revolution Slider?

    <html>
    <head>
     <title>JavaScript Popup Example 3</title>
    </head>
    <script type="text/javascript">
    function poponload()
    {
        testwindow = window.open("", "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100");
        testwindow.moveTo(0, 0);
    }
    </script>
    <body onload="javascript: poponload()">
    <h1>JavaScript Popup Example 3</h1>
    </body>
    </html>
    #41110

    Alexander
    Keymaster

    Hi Liz,

    This isn’t something that Revolution Slider directly supports. However, Revolution Slider can accept shortcodes. This means you can use a plugin that is designed for creating popups, and enter shortcode into your slider content.

    Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or look to a service such as Microlancer or Tweaky for assistance should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #46628

    Liz B
    Participant

    Not a problem, thank you for the thoughtful response. I didn’t know plugins existed for creating pop-ups, so that is incredibly helpful. Thanks!

    #46866

    Support
    Member

    Thanks Liz.