-
AuthorPosts
-
April 28, 2014 at 12:30 am #37904
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 LiveThe 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!
April 28, 2014 at 12:36 am #37906Sorry, 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>
April 28, 2014 at 8:27 am #38022Hi 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.
May 5, 2014 at 3:01 pm #40838Thank 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>
May 6, 2014 at 10:08 am #41110Hi 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.
May 20, 2014 at 8:23 pm #46628Not a problem, thank you for the thoughtful response. I didn’t know plugins existed for creating pop-ups, so that is incredibly helpful. Thanks!
May 21, 2014 at 9:25 am #46866Thanks Liz.
-
AuthorPosts