FTWSGEM Posted March 19 Share Posted March 19 I have implemented a forced hamburger on desktop and added my own image which I am happy with. However, it would be amazing if I could get it to change colour on hover. I did look at adding a 'change image on hover' but I cannot find a Block ID for it. Any ideas? https://dinosaur-horse-8k34.squarespace.com/ PW: notyet Link to comment
FTWSGEM Posted March 20 Author Share Posted March 20 @tuanphan @Ziggy Any ideas guys? Link to comment
Ziggy Posted March 20 Share Posted March 20 (edited) To change the colour on hover you would most likely have to swap the image in CSS, unless you want to simply invert the image. What code did you use to change the hamburger menu icon to an image? Edited March 20 by Ziggy Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Solution Shadmon Posted March 20 Solution Share Posted March 20 @FTWSGEM Hi, You can add this CSS code. Just add your image there and it will show on hover. .burger-inner:hover::after { background-image: url(add your image url here); } Let me know if it helps! yomoni_lume21, terih_okici79, FTWSGEM and 2 others 2 3 Link to comment
FTWSGEM Posted March 20 Author Share Posted March 20 9 hours ago, Shadmon said: @FTWSGEM Hi, You can add this CSS code. Just add your image there and it will show on hover. .burger-inner:hover::after { background-image: url(add your image url here); } Let me know if it helps! That is perfect, thank you @Shadmon How would I get this to also work for the logo? Link to comment
Shadmon Posted March 21 Share Posted March 21 @FTWSGEM We can do that easily by javascript. Can you confirm you have subscribed to a business plan? Link to comment
FTWSGEM Posted March 21 Author Share Posted March 21 @Shadmon I have a business plan with the site I am looking to replace. This one is on a trial. Link to comment
tuanphan Posted March 25 Share Posted March 25 @FTWSGEM with logo try this code, replace Pixabay with your logo url .header-title-logo a:hover img { content: Url(https://cdn.pixabay.com/photo/2024/02/28/14/01/woman-8602128_1280.png); } 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
FTWSGEM Posted March 25 Author Share Posted March 25 54 minutes ago, tuanphan said: @FTWSGEM with logo try this code, replace Pixabay with your logo url .header-title-logo a:hover img { content: Url(https://cdn.pixabay.com/photo/2024/02/28/14/01/woman-8602128_1280.png); } This gives me a syntax error 😞 Link to comment
tuanphan Posted March 27 Share Posted March 27 On 3/25/2024 at 4:26 PM, FTWSGEM said: This gives me a syntax error 😞 change U to lowercase u If it still appears problem, you can take a screenshot, I can check again 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!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment