xavier-cusso Posted February 21, 2020 Posted February 21, 2020 Site URL: https://pelican-chiton-xwy4.squarespace.com/ Hola, Trying to change the image for "FOS Classic" product entry on hover, in the Homepage right under "THE FOS COLLECTIONS" section. Anybody knows how to do that on 7.1?? I'd be interested in keeping the section and not having to start over using code blocks. Here's the image to be displayed on hover: Thanks
tuanphan Posted February 21, 2020 Posted February 21, 2020 add to Home > Design > Custom CSS div#block-yui_3_17_2_1_1576760789753_14465 a:hover img { visibility: hidden; } div#block-yui_3_17_2_1_1576760789753_14465 a:hover { background-image: url(https://beaverhero.com/wp-content/uploads/2019/06/trees-3464777_640-min.jpg); background-size: cover; background-repeat: no-repeat; } xavier-cusso 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!)
Sarah_Hallmarked Posted February 25, 2022 Posted February 25, 2022 Hi Tuanphan, thanks so much for this although i am getting a 'ghosting' image when hovering under this section also, could you please tell me if there is a reason for it/ a workaround? I've attached images for ref - the pack is shown on hover. Thanks! Sarah
tuanphan Posted February 27, 2022 Posted February 27, 2022 On 2/26/2022 at 4:52 AM, Sarah_Hallmarked said: Hi Tuanphan, thanks so much for this although i am getting a 'ghosting' image when hovering under this section also, could you please tell me if there is a reason for it/ a workaround? I've attached images for ref - the pack is shown on hover. Thanks! Sarah I don't see your products on homepage. Can you share link to exact page? 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!)
Sarah_Hallmarked Posted February 28, 2022 Posted February 28, 2022 Thanks so much - here is the link: https://petnatura.co.uk/rawfood
tuanphan Posted March 3, 2022 Posted March 3, 2022 On 3/1/2022 at 5:30 AM, Sarah_Hallmarked said: Thanks so much - here is the link: https://petnatura.co.uk/rawfood edit this class name Quote div#block-yui_3_17_2_1_1645696814640_3767 a:hover to this Quote div#block-yui_3_17_2_1_1645696814640_3767 a:not(.product-title):hover 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!)
Sarah_Hallmarked Posted March 3, 2022 Posted March 3, 2022 4 hours ago, tuanphan said: edit this class name to this Thanks so much! I amended but it's now flashing blank on hover. I hope i have amended correctly to the below: div#block-yui_3_17_2_1_1645696814640_3767 a:not(.product-title):hover { visibility: hidden; } div#block-yui_3_17_2_1_1645696814640_3767 a:not(.product-title):hover { background-image: url(https://static1.squarespace.com/static/5fdcc5ea23f93f3b0a025847/t/621956096ed5e56712593edc/1645827595303/Pet+Natura+Veggie+Complete+Hover-01.png); background-size: cover; background-repeat: no-repeat; }
tuanphan Posted March 6, 2022 Posted March 6, 2022 On 3/4/2022 at 12:37 AM, Sarah_Hallmarked said: Thanks so much! I amended but it's now flashing blank on hover. I hope i have amended correctly to the below: div#block-yui_3_17_2_1_1645696814640_3767 a:not(.product-title):hover { visibility: hidden; } div#block-yui_3_17_2_1_1645696814640_3767 a:not(.product-title):hover { background-image: url(https://static1.squarespace.com/static/5fdcc5ea23f93f3b0a025847/t/621956096ed5e56712593edc/1645827595303/Pet+Natura+Veggie+Complete+Hover-01.png); background-size: cover; background-repeat: no-repeat; } Did you solve or still need help? 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!)
Sarah_Hallmarked Posted March 9, 2022 Posted March 9, 2022 Still need help please - hugely appreciated! I've left it as the flashing blank so you can see: https://petnatura.co.uk/rawfood Thank you
tuanphan Posted March 13, 2022 Posted March 13, 2022 On 3/9/2022 at 4:06 PM, Sarah_Hallmarked said: Still need help please - hugely appreciated! I've left it as the flashing blank so you can see: https://petnatura.co.uk/rawfood Thank you Use this new code div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) img { visibility: hidden } div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) { background-image: url(https://static1.squarespace.com/static/5fdcc5ea23f93f3b0a025847/t/621956096ed5e56712593edc/1645827595303/Pet+Natura+Veggie+Complete+Hover-01.png); background-size: cover; background-repeat: no-repeat } 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!)
Sarah_Hallmarked Posted March 31, 2022 Posted March 31, 2022 On 3/13/2022 at 10:46 AM, tuanphan said: Use this new code div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) img { visibility: hidden } div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) { background-image: url(https://static1.squarespace.com/static/5fdcc5ea23f93f3b0a025847/t/621956096ed5e56712593edc/1645827595303/Pet+Natura+Veggie+Complete+Hover-01.png); background-size: cover; background-repeat: no-repeat } Thanks so much! seems to have done the trick 🙌
vccc Posted November 8, 2022 Posted November 8, 2022 Hi! Thanks so much for this. I successfully switched out my product photo on hover, but it's also using the same image to switch out the hover on the product name. Is there a way to fix this?
tuanphan Posted November 12, 2022 Posted November 12, 2022 On 11/9/2022 at 4:44 AM, vccc said: Hi! Thanks so much for this. I successfully switched out my product photo on hover, but it's also using the same image to switch out the hover on the product name. Is there a way to fix this? What is your site url? We can check problem easier 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!)
blakedebock Posted April 12 Posted April 12 Hi the code is not working for me. Does it not work anymore? I'd like to have my images on hover (on store pages) to not show the next photo. I have this code in both custom css for entire site and for the page but neither seems to do anything. If anyone could please help? div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) img { visibility: hidden } div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) { background-image: url(https://static1.squarespace.com/static/5fdcc5ea23f93f3b0a025847/t/621956096ed5e56712593edc/1645827595303/Pet+Natura+Veggie+Complete+Hover-01.png); background-size: cover; background-repeat: no-repeat } https://www.blakedebock.com/fineart
tuanphan Posted April 16 Posted April 16 On 4/13/2024 at 6:46 AM, blakedebock said: Hi the code is not working for me. Does it not work anymore? I'd like to have my images on hover (on store pages) to not show the next photo. I have this code in both custom css for entire site and for the page but neither seems to do anything. If anyone could please help? div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) img { visibility: hidden } div#block-yui_3_17_2_1_1645696814640_3767:hover a:not(.product-title) { background-image: url(https://static1.squarespace.com/static/5fdcc5ea23f93f3b0a025847/t/621956096ed5e56712593edc/1645827595303/Pet+Natura+Veggie+Complete+Hover-01.png); background-size: cover; background-repeat: no-repeat } https://www.blakedebock.com/fineart You can use this CSS code img.grid-item-image.grid-image-cover { opacity: 1 !important; } img.grid-item-image.grid-item-additional-image { opacity: 0 !important; } img.grid-item-image.grid-image-hover { opacity: 0 !important; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment