Jump to content

Clickthrough link on shapes

Recommended Posts

  • Replies 4
  • Views 2.1k
  • Created
  • Last Reply

Top Posters In This Topic

What is password?

image.png.b628b09c66a500d3259a4cab9b7109e6.png

(1) You can also follow this guide

First, use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('.fe-block a:contains("clickable")').addClass('text-click');
});
</script>

(2) Use this code to Custom CSS box

a.text-click {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent !important;
}

(3) Add Text Block over Shape Block

Shape Block Clickable1 Min

Add a text: clickable and add link on it. Replace Google with your desired url.

The code I sent above will hide this text and make Shape clickable

Shape Block Clickable2 Min

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 months later...
On 6/11/2024 at 1:14 PM, andersen.lucy said:

hey @tuanphan this was a great hack for making shapes clickable. but when I load the page, the 'clickable' text loads quickly first for a split second. any way to avoid this flash of the text?

You can share page url, I will give you code to fix this.

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.