Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Clickable Code Block


longstrider28

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
1 hour ago, longstrider28 said:

Site URL: http://www.faisalalmutairi.com

Hi. I have an embedded autoplay video on the main page. This should feature the main story on the website. Is it possible to click on the block to take me to a different page? Thanks. Faisal.

which pages you want to link? Do you mean clicking the auto video will direct to your target page? 

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0
4 hours ago, longstrider28 said:

Yes.

Try in Home > Settings > Advanced > Code injection 

add to the footer

<script>
  const wrapperVideo = document.querySelector('#block-yui_3_17_2_1_1634342914633_3172 center').innerHTML;

  document.querySelector('#block-yui_3_17_2_1_1634342914633_3172 center').innerHTML = <a href = "https://www.google.com/" target = "_blank">${wrapperVideo}</a>
</script>

Change the link in a tag define the page you want to direct

Support me by pressing 👍 if this useful for you

Edited by bangank36

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0
1 hour ago, bangank36 said:

Try in Home > Settings > Advanced > Code injection 

add to the footer

<script>
  const wrapperVideo = document.querySelector('#block-yui_3_17_2_1_1634342914633_3172 center').innerHTML;

  document.querySelector('#block-yui_3_17_2_1_1634342914633_3172 center').innerHTML = <a href = "https://www.google.com/" target = "_blank">${wrapperVideo}</a>
</script>

Change the link in a tag define the page you want to direct

Support me by pressing 👍 if this useful for you

Sorry I tried it and it doesn't work.

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...