Display/Hide Vimeo video player only when button is pushed?



Hi Guy’s,

I hope you can help me learn this skill. :slight_smile:

In the first screenshot, (Not my site) there is an Image of a girl onstage pointing. In the middle of the same page there is a “Watch Video” button located just under the green “Register Now” button. If you click on this button it goes straight to the second image which is a full screen video player which waits for you to click again on the image and it plays. Should you wish to stop the video, hit the close video button and the video and player disappear. You are taken straight back to the first screen which is the home page.

The actual player is never seen really. How do I create a version of this using a video from Vimeo; IE: I have a “watch video” button on my home page and it goes straight to my video. It returns to my home page when I click “Close Video”?

Thank you in advance for taking time to read this note :slight_smile:

Regards
Robert Huggins
Melbourne
Australia

For the watch video button, you can just have a button that directs the user to the page that the video is, either through the link on the element or through code with onClick.

For the video itself, why not just add Wix own video player and not have autoplay turned on.
https://support.wix.com/en/article/autoplay-for-videos-in-wix-video
https://support.wix.com/en/article/adding-and-setting-up-the-single-video-player
https://support.wix.com/en/article/single-video-player-settings-per-video-source

Then you can simply have another button for close that when clicked, the user is then taken back to whatever page you want them to be sent to.

Again you can do this through the link on the button or you use code and use onClick and then location.to to take them to another page.

Thank you Giveme, I will now go and give it a try. What an excellent username “givemeawhisky” :slight_smile: . Your reply is very concise. I have not tried anything yet but you have been wonderfully clear and I am very pleased to hear from a Ninja. This post is obviously pre whisky or, you are a high functioning alcoholic. LOL :smiley: :smiley: :smiley: