Jump to content

Clickthrough with Hover for Image Blocks.

Recommended Posts

I have a page, it's a bunch of individual image blocks arranged in a grid. I set them all to inline with caption on hover but I wanted the hover to be the the full height of the image and the caption to be centered. So, I used this little bit of code here:

/* Image Captions on Hover*/
.image-caption-wrapper {
  min-height: 100%;
  display: flex;
  align-items: center; /*vertically centered */
  justify-content: center; /*text align center*/
  background: rgba(1, 1, 1, 0.6) !important; /* Background Overlay*/
}

However, I have now lost the ability to 'clickthrough' to another page on my site. How I can I get the 'hover' I want and still be able to 'clickthrough' anywhere on that image/thumbnail.

Thanks,

-A

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try adding this to Home > Design > Custom CSS. If it doesn't work, please share link to page where you use image blocks. We can help easier

.image-caption-wrapper {
	pointer-events: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.