Jump to content

Clickthrough Image with Hover CSS Masonry Grid Not Working

Recommended Posts

Site URL: https://www.hapticstudio.com.au/projects

Hi there,

I'm struggling to find a way to get the Dorothy image hover to lead to the project page. Any help would be greatly appreciated.

I've copied in the CSS I have been working with as it relates to the gallery. I imagine it is a mess to those who understand it more clearly than I do. Sorry in advance.



.gallery-caption {
position: absolute;
top: 0;
left: 0;
background: rgba(247,245,244,0.8); /* overlay color */
height: 100%;
max-width: unset;
padding: 0;
opacity: 0;
}
.gallery-caption-wrapper {
display: flex;
align-items: center; /* center vertically */
justify-content: center; /* center horizontally */
}
.gallery-caption-content 
{
font-size: 4vw !important;   /* caption font size */
color: rgb(40,40,41); /*caption font color */
font-family:'Lausanne-300'!important
}
.gallery-masonry-item {
position: relative;
}
.gallery-masonry-item:hover .gallery-caption {
opacity: 1;
}
.gallery-caption-grid-masonry {
transition-delay: 0ms;
}

 

Link to comment
2 hours ago, Ellell said:

Site URL: https://www.hapticstudio.com.au/projects

Hi there,

I'm struggling to find a way to get the Dorothy image hover to lead to the project page. Any help would be greatly appreciated.

I've copied in the CSS I have been working with as it relates to the gallery. I imagine it is a mess to those who understand it more clearly than I do. Sorry in advance.



.gallery-caption {
position: absolute;
top: 0;
left: 0;
background: rgba(247,245,244,0.8); /* overlay color */
height: 100%;
max-width: unset;
padding: 0;
opacity: 0;
}
.gallery-caption-wrapper {
display: flex;
align-items: center; /* center vertically */
justify-content: center; /* center horizontally */
}
.gallery-caption-content 
{
font-size: 4vw !important;   /* caption font size */
color: rgb(40,40,41); /*caption font color */
font-family:'Lausanne-300'!important
}
.gallery-masonry-item {
position: relative;
}
.gallery-masonry-item:hover .gallery-caption {
opacity: 1;
}
.gallery-caption-grid-masonry {
transition-delay: 0ms;
}

 

Try adding to Home > Design > Custom Css

.gallery-caption {
  pointer-events: none;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Greeting, it's 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, Keyword Highlighter
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

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.