Jump to content

Click button under image?

Recommended Posts

Posted

Hello,

Is there a way to set an image so that it is transparent, not visually, but so that a link/button under it is still clickable? My reason for having an image on top of the link is purely aesthetic.

Posted

Hey @rf9293

Could you please be more detailed with you what you need, maybe with screenshots?

A solve could be using custom css to disable the pointer events on the top image block, so that the interactivity works on the element beneath it.
 

#imgblockid {
pointer-events: none;
}

You would need to find the specific #id for that specific image in the code.
1. Right click on the image and select 'Inspect'.
2. Find the value inside id="block-id-here" (see screenshot)
3. Replace #img-block-id in the code provided with your specific block id
4. Navigate to Pages > Website Tools (at the very bottom LHS) > Custom CSS
5. Paste the code in there and click Save

 

 

Screenshot 2024-07-01 at 4.01.24 pm.png

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.