Jump to content

How To add a clickthrough link to shapes

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

It is possible in some circumstances to use a code block and CSS to get this effect.

Lay down a circle shape. Overlay a text block. Overlay a code block. This can be tricky as FE is finky about placing elements. My first try of the code block overlay, destroyed the placement of the underlying elements.

Code block code.

<a href="/"></a>

Example CSS for the code block.

#block-yui_3_17_2_1_1685728561254_18345 .sqs-block-content {

  height : 100%;
  
  }

#block-yui_3_17_2_1_1685728561254_18345 .sqs-block-content a {

  border-radius : 50%;
  display : block;
  height : 100%;
  width : 100%;
  
  }

This is for v7.1.

JavaScript might also be used to achieve a similar effect but I know of no code that does this.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.