The creator of Revolution slider redirected me towards you for the question I have, due to the fact that the slider is incorporated into the theme. The question I have is as follows:
I would like to know if it is possible to assign certain values (like width and height of a popup window) to a layer (image) that functions as a button. The result should be something like this:http://radioplayer.npo.nl/funx/?channel=7 -> in a separate popup window.
Hope you can help me out here.
By the way, see the screenshot for my question at Themepunch
I know it works when you add a button to the slider as I tried that solution. I used this code when adding a button. My question now is, can I add the onclick while using an image/layer?
The reason is that I would like the pop up to appear with certain width and height.
a href=\"http://radioplayer.npo.nl/funx/?channel=7\" onclick=\"window.open(\'http://radioplayer.npo.nl/funx/?channel=7\',\'FunX\', \'width=400,height=425,scrollbars=no,toolbar=no,location=no\'); return false\">
This is not possible this way, but you can add a custom class to the image from the revolution slider slide editor, then add custom javascript to run the onclick function when the image that is using the class is clicked.
Do not hesitate to contact us if you have more questions!
Hi,
The creator of Revolution slider redirected me towards you for the question I have, due to the fact that the slider is incorporated into the theme. The question I have is as follows:
I would like to know if it is possible to assign certain values (like width and height of a popup window) to a layer (image) that functions as a button. The result should be something like this:http://radioplayer.npo.nl/funx/?channel=7 -> in a separate popup window.
Hope you can help me out here.
By the way, see the screenshot for my question at Themepunch
Regards,
Richard
Hello Richard,
I think this is problem but will need custom JS and CSS.
There is not function that can do that automatically by default.
Do not hesitate to contact us if you have other questions.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Hi,
I know it works when you add a button to the slider as I tried that solution. I used this code when adding a button. My question now is, can I add the onclick while using an image/layer?
The reason is that I would like the pop up to appear with certain width and height.
a href=\"http://radioplayer.npo.nl/funx/?channel=7\" onclick=\"window.open(\'http://radioplayer.npo.nl/funx/?channel=7\',\'FunX\', \'width=400,height=425,scrollbars=no,toolbar=no,location=no\'); return false\">
Regards,
Richard
Hello,
This is not possible this way, but you can add a custom class to the image from the revolution slider slide editor, then add custom javascript to run the onclick function when the image that is using the class is clicked.
Do not hesitate to contact us if you have more questions!
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
I see. Thanks for the feedback.
You can close the ticket if you like.
Regards,
Richard
You\'re welcome!
Do not hesitate to contact us if you have other questions.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme