Jump to content

Put a link around a video

Recommended Posts

Posted

Hello everyone !

I want to add a link around my videos, but i'm not sure i will be able to that easily with the code injection.
Let me show you what I would like :

image.thumb.png.4f1509469971e866121616c5cb99db9a.png

Can you see the orange square around the first video ?
I would like my link to be here, for each video, and to still be responsive

Do you think that this is possible to do and to maintain when i would add other videos ?

Thank you in advance for your response !

Have a good day :) 

  • Replies 3
  • Views 397
  • Created
  • Last Reply

Top Posters In This Topic

Posted

You need to share the website and details of the blocks/sections you're using.

It will require custom code if those are actually videos. But yes, perfectly possible.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

For Custom Plugins email me 🧩

Posted

Hello,

Thank you for your answer @KwameAndCo !

Here's my website : https://rahmanabdoul.squarespace.com/
I would like to add a link around each of my video that you can find in my homepage.

With custom code, I have 2 ideas on how to do that :
1) Should I use javascript to listen to the click on each videos and redirect the user
2) Or can I access the html of my videos and put an anchor <a href="/link"></a> around my videos ?

Can one of those 2 solutions work ? Or is there an easier way to do that ?
Thank you !  

Posted

Gotcha @RahmanStudio

So since they're video blocks, yeah, you'd need to use JS.

The issue is where you want the link to point to as you'd need to manually select by block.
I have a plugin I was developing for this but haven't released yet - if you want to beta-test it in return for a review I'd be happy to share.

Otherwise, yeah, you need JS to add the link and set the URL as there's no native way to add it in the editor.

It's a bit of a headache.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

For Custom Plugins email me 🧩

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.