Jump to content

Making a video clickable /linkable

Recommended Posts

  • Replies 6
  • Views 2.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 months later...
On 9/2/2023 at 6:40 PM, tuanphan said:

We can use script code to make video clickable. If you share link to page where you use video, we can give code for 1 video & quick guide to apply for future videos.

Hi Tuan, 

I'm facing a similar problem. I'd like to make the video on my front page into a clickable link that opens into a new tab. What's the best method you would go about this? Thanks!

Also I'm on a business plan!

zaneliu.com

Edited by zaneliu
Link to comment
On 1/3/2024 at 10:48 PM, zaneliu said:

Hi Tuan, 

I'm facing a similar problem. I'd like to make the video on my front page into a clickable link that opens into a new tab. What's the best method you would go about this? Thanks!

Also I'm on a business plan!

zaneliu.com

You mean the people on right of this page?

https://zaneliu.com/

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
On 1/5/2024 at 10:01 PM, zaneliu said:

Hi Tuan, that's correct! I'd like to make that video a clickable link to an external tab. 

It looks like you are using Cover Page, you can add this code to Cover Page Settings > Advanced > Code Injection (right box)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$(".sqs-slide-layer-content.content-gallery").click(function() {
			var link = $(this).text(),
				href = "https://google.com";
			window.location.href=href;
		});
});
</script>
<style>
  .sqs-slide-layer-content.content-gallery {
  	cursor: pointer;
  }
</style>

 

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
7 hours ago, tuanphan said:

It looks like you are using Cover Page, you can add this code to Cover Page Settings > Advanced > Code Injection (right box)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$(".sqs-slide-layer-content.content-gallery").click(function() {
			var link = $(this).text(),
				href = "https://google.com";
			window.location.href=href;
		});
});
</script>
<style>
  .sqs-slide-layer-content.content-gallery {
  	cursor: pointer;
  }
</style>

 

Thank you Tuan! That's perfect.

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.