Jump to content

Clickable Video in embed block. HELP!!

Recommended Posts

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 

Link to comment
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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
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?

image.thumb.png.2356361d92c021a387c971c475372594.png

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!)

Link to comment
  • 2 weeks later...
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 

Screen Shot 2021-05-29 at 8.04.30 AM.png

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!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.