adamcbright Posted May 12, 2021 Posted May 12, 2021 Site URL: https://adambright.me/lexus-is-vehicle-launch-1 Hi! I need help! Ive got autoplaying, looping videos with no controls on my portfolio. they look awesome, super cool. This is where i found out where to do it. https://www.justinwyne.com/thoughts/2018/5/15/how-to-embed-borderless-autoplaying-looping-videos-on-squarespace You basically use this bit of code and replace the URL with your video, then you paste it into the embed block. it works like a charm. This is the code <video style="width: 100%" loop autoplay playsinline muted src="URL_HERE"> <source type="video/mp4" src="URL_HERE"> </video> BUT. I really really really want to make them clickable. LIKE REALLY! So they are buttons. Cool videos that are buttons! Im sure its a really simple thing but i just cant figure out how to do it. Please can someone help me !! Thanks so much Adam
Beyondspace Posted May 12, 2021 Posted May 12, 2021 41 minutes ago, adamcbright said: Site URL: https://adambright.me/lexus-is-vehicle-launch-1 Hi! I need help! Ive got autoplaying, looping videos with no controls on my portfolio. they look awesome, super cool. This is where i found out where to do it. https://www.justinwyne.com/thoughts/2018/5/15/how-to-embed-borderless-autoplaying-looping-videos-on-squarespace You basically use this bit of code and replace the URL with your video, then you paste it into the embed block. it works like a charm. This is the code <video style="width: 100%" loop autoplay playsinline muted src="URL_HERE"> <source type="video/mp4" src="URL_HERE"> </video> BUT. I really really really want to make them clickable. LIKE REALLY! So they are buttons. Cool videos that are buttons! Im sure its a really simple thing but i just cant figure out how to do it. Please can someone help me !! Thanks so much Adam You making your video in vimeo autoplay? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
adamcbright Posted May 12, 2021 Author Posted May 12, 2021 Hey - Im uploading them to amazon and serving them on that. That code is making them autoplay, i just want to put a click though on the video too. You'll see some autoplaying videos on my site here https://adambright.me/lexus-is-vehicle-launch-1 I just want to make those videos click through to other pages. Thanks so much! Adam
tuanphan Posted May 14, 2021 Posted May 14, 2021 On 5/12/2021 at 9:29 PM, adamcbright said: Hey - Im uploading them to amazon and serving them on that. That code is making them autoplay, i just want to put a click though on the video too. You'll see some autoplaying videos on my site here https://adambright.me/lexus-is-vehicle-launch-1 I just want to make those videos click through to other pages. Thanks so much! Adam Hi. You mean top video or? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
adamcbright Posted May 27, 2021 Author Posted May 27, 2021 Hey ! Not that one, the sq one bellow that that currently auto plays. Thanks
tuanphan Posted May 28, 2021 Posted May 28, 2021 20 hours ago, adamcbright said: Hey ! Not that one, the sq one bellow that that currently auto plays. Thanks I see 1 video block here. Can you take a screenshot? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
adamcbright Posted May 29, 2021 Author Posted May 29, 2021 Its the sq on the left, thats the one that i have made auto play and have no controls. I just want to make it clickable so it can go to another page. thanks
tuanphan Posted June 1, 2021 Posted June 1, 2021 On 5/29/2021 at 10:05 PM, adamcbright said: Its the sq on the left, thats the one that i have made auto play and have no controls. I just want to make it clickable so it can go to another page. thanks Hi. Try adding to Settings > Advanced > Code injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('div#block-yui_3_17_2_1_1620664937477_292795>div').click(function() { var link = $(this).text(), href = "https://google.com"; window.location.href=href; }); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.