Jump to content

Recommended Posts

You can use this code to Website Tools > Custom CSS

div.grid-image-inner-wrapper:before {
    content: "Discover projects";
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 99999999999999999 !important;
    opacity: 0;
}
.grid-item:hover div.grid-image-inner-wrapper:before {
    opacity: 1;
}

 

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
On 5/22/2024 at 3:36 PM, halfhide said:

Thanks! It works! 

Though it kind of hides behind the grey hover colour. It there a way to bring it to the front, so it is easier to read?

Because you used code to change opacity of whole image, so it will affect both image + text. You can use this CSS under to unset it.

a.grid-item, .grid-image {
    opacity: 1 !important;
}
.grid-item:hover .grid-image-inner-wrapper:after {
    background: rgba(158,158,158,0.5) !important;
    opacity: 1 !important;
}

you can change rgba color to what you want

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.