rbrinkerhoff 45 Share Posted April 2, 2014 (edited) I have an image hover CSS code implemented, but it affects all images on my site. Is there a way to affect just the linked images? This is the code I am currently using: .sqs-block-image .intrinsic .image-block-wrapper img:hover { opacity: 0.5; } Edited April 16, 2014 by rbrinkerhoff Tidy jasonvb, silvan, BarbaraD and 1 other 5 Link to post
0 colin.irwin 17,547 Share Posted April 16, 2014 Can you post a URL? Please hit LIKE to share your appreciation of posts that are helpful or useful. The like button is somewhere over there Of course, Likes don't pay the bills.. If you're looking for a Squarespace Developer you can hire me here Link to post
7 jasonvb 101 Share Posted April 16, 2014 (edited) I think I found it! Try this out: a:link img { opacity: 1.0; filter: alpha(opacity=100); /* For IE8 and earlier */ } a:hover img { opacity: 0.6; filter: alpha(opacity=60); /* For IE8 and earlier */ } Edited April 16, 2014 by jasonvb Link to post
0 newskywebsites 0 Share Posted September 10, 2014 Thanks for this help, but when I used it the "View Project" hover text also became lighter. Is there a way to make the hover background that pops up (Pacific) darker? Here is my site: https://dawn-krueger-n5o7.squarespace.com - go to Projects... Thanks so much!Dawn Link to post
0 Guest Share Posted April 17, 2015 Although this question has already been answered, I figured I'd add a little code I luckily figured out while combining two codes together to get the full result I was looking for. So, I have a few transitional (code block) images on my site (http://www.goffcreative.com), specifically the subscription image where the button transitions colors. I came across this answer while looking for a resolution for hover roll-overs on linked IMAGES and GALLERIES only, however even my coded transitional images (which I didn't want to change) were affected by this code. Anyhow, super-long story a little shorter, if you ONLY want images and gallery images that are linked to have the hover effect, use this: img.thumb-image:hover { opacity: 0.6; filter: alpha(opacity=60); } If you don't have any code block links (you don't want affected) on your site, this isn't necessary. Thanks @jasonvb for the original! You're awesome. Link to post
3 Guest Solution Share Posted April 17, 2015 And somehow I posted the wrong code... Okay, here's the real one. Seriously this time: a:link img { opacity: 1.0; filter: alpha(opacity=100); } a:hover img.thumb-image { opacity: 0.6; filter: alpha(opacity=60); } Link to post
1 Newbie01 0 Share Posted April 26, 2016 Hello, I was trying to achieve the same but I have a gallery block on my page which I don't want to be affected. Would love to know the modified code so I could only affect a linked image on my page. Thanks for your help. Link to post
0 rakeshkaushal 0 Share Posted May 22, 2017 I was very confused that how can i make the effect in the images and gallery of my website.then i ll find a way to concern with the professional that help me out so much in this. If you have any issue with this please concern with them Link to post
0 rakeshkaushal 0 Share Posted May 22, 2017 I was very confused that how can i make the effect in the images and gallery of my website.then i ll find a way to concern with the professional that help me out so much in this. If you have any issue with this please concern with them Link to post
0 puneet 0 Share Posted May 31, 2017 I have the same problem, and didn't manage to solve it. What exactly does 'not Squarespace friendly code' mean . I can try the tutorial of these friends https://youtu.be/jbyYG4x98c . These guys tutorials really helpful to me. I can suggest to you . You can also try it i hope its help to you a lot https://youtu.be/jbyYG4x98c Thanks Link to post
0 biancabelle 0 Share Posted July 11, 2019 This is super old, but exactly what I'm looking for! However, this code isn't working for me. Can anyone help me with an update? site: biancapasternack.design (only want it hover to happen on images with links) thanks :) Link to post
0 Paul_in 1 Share Posted June 11, 2020 Ok I was searching of the same answer and was able to make an hover effect work so helping people who might want the same This is working for : - images that are a link - images in a summary block that are therefore a link by default - images in a blog area that are therefore a link by default And not on : - images in a gallery - images that are not a link .sqs-block-image a:hover img { filter: grayscale(100%); } /*Image in a summary: hover effect*/ .sqs-gallery-design-carousel .sqs-gallery-design-carousel-slide a:hover img { filter: grayscale(100%); } /*Image in a main blog page : hover effect*/ .BlogList-item-image-link:hover { filter: grayscale(100%); } 🙂 Link to post
Question
rbrinkerhoff 45
I have an image hover CSS code implemented, but it affects all images on my site. Is there a way to affect just the linked images?
This is the code I am currently using:
Edited by rbrinkerhoffTidy
Link to post
Top Posters For This Question
2
2
1
Popular Days
Apr 16
3
Apr 17
2
May 22
2
Jul 11
1
Top Posters For This Question
jasonvb 2 posts
rakeshkaushal 2 posts
biancabelle 1 post
Popular Days
Apr 16 2014
3 posts
Apr 17 2015
2 posts
May 22 2017
2 posts
Jul 11 2019
1 post
14 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment