Jump to content

Custom cursor change on hover when it shouldn't (over a gallery image)

Go to solution Solved by Paul_M,

Recommended Posts

Site URL: https://juliettebinet.fr/bois-jouets

Hi everyone, 

https://juliettebinet.fr/bois-jouets
password : juliettebiennee

I'm almost done building this website for a friend and we implemented a last minute custom cursor : a hand in general. This hands turns into a pointed finger when it comes on top of a link or an image link.

I just noticed that the hand also turns into a pointed finger when it goes on top of an image uploaded in a slideshow gallery even when this image is not clickable (no lightbox,  no link). 

like on this page on the image at the bottom : https://juliettebinet.fr/bois-jouets

I would like to avoid this change of cursor since it's misleading, it's not a clickable image. 

Any thoughts ? 

Here is the css code I used for the custom cursor so far :

/*custom arrow*/
html, body {
     cursor: url(https://juliettebinet.fr/s/Mouse_final_45.png), auto !important;
   }

a {
cursor: url(https://juliettebinet.fr/s/Mouse_final_hover_45.png), auto !important;
}

 

 

 

 

Link to comment
  • Solution

All right answering my own question :

I just found a bit of CSS for the gallery image that is not a link and for a gallery image that is a link and specified the cursor I wanted on it  

 

/*custom cursor 1*/
html, body {
     cursor: url(https://juliettebinet.fr/s/Mouse_final_45.png), auto !important;
   }

/*custom cursor 2 = text links*/
a, h1 a, h2 a, h3 a, h4 a, 
h5 a, h6 a, h7 a, h8 a, h9 a, {
cursor: url(https://juliettebinet.fr/s/Mouse_final_hover_45.png), auto !important;
}

/*custom cursor 2 = image links*/
.sqs-block-image a img {
cursor: url(https://juliettebinet.fr/s/Mouse_final_hover_45.png), auto !important;
}

/*custom cursor fix on gallery images that are not link or lightbox to stay 1 */
.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor {
     cursor: url(https://juliettebinet.fr/s/Mouse_final_45.png), auto !important;
   }

/*custom cursor 2 on gallery image wiht lightbox */
.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor[href] img{
cursor: url(https://juliettebinet.fr/s/Mouse_final_hover_45.png), auto !important;
}

 

Edited by Paul_M
full code inserted into the message
Link to comment
  • 1 year later...

@Paul_M first of all, thank you for this! I was curious if you or someone out there knew how to make this work for the Gallery Type → "Slideshow: Reel"

I noticed you're using this, but I can't seem where to find it for the Slideshow: Reel

.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor[href]

Hopefully you see this or get an email about this post, been trying to figure it out for week! Thanks in advance, here's the login info for the site to see what I'm talking about:

https://dinosaur-dogfish-arl4.squarespace.com/work
PW: food

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.