nerdyartkid Posted January 17, 2022 Share Posted January 17, 2022 Site URL: https://www.nerdyartkid.com After some searching through past posts and some trial and error, I managed to make my logo go from plain black(ish grey) to a colorful version on hover! However, in doing so, I broke the link for the logo to go back to the homepage. What can I do to fix this? Or do I need to abandon the Avenue template finally for something else? Here is my code that worked for the hover effect... .logo:hover { content: url(https://static1.squarespace.com/static/602c3633fce3c526878791c5/t/61e4cc0071d03343e572f781/1642384385070/Nerdy_Art_Kid2.png); } Thanks in advance! Link to comment
Solution Beyondspace Posted January 17, 2022 Solution Share Posted January 17, 2022 1 hour ago, nerdyartkid said: Site URL: https://www.nerdyartkid.com After some searching through past posts and some trial and error, I managed to make my logo go from plain black(ish grey) to a colorful version on hover! However, in doing so, I broke the link for the logo to go back to the homepage. What can I do to fix this? Or do I need to abandon the Avenue template finally for something else? Here is my code that worked for the hover effect... .logo:hover { content: url(https://static1.squarespace.com/static/602c3633fce3c526878791c5/t/61e4cc0071d03343e572f781/1642384385070/Nerdy_Art_Kid2.png); } Thanks in advance! Try replacing your previous code with the following one .logo:hover { background-image: url(https://static1.squarespace.com/static/602c3633fce3c526878791c5/t/61e4cc0071d03343e572f781/1642384385070/Nerdy_Art_Kid2.png); background-size: contain; } .logo:hover img { visibility: hidden; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too nerdyartkid 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
nerdyartkid Posted January 18, 2022 Author Share Posted January 18, 2022 18 hours ago, bangank36 said: Try replacing your previous code with the following one .logo:hover { background-image: url(https://static1.squarespace.com/static/602c3633fce3c526878791c5/t/61e4cc0071d03343e572f781/1642384385070/Nerdy_Art_Kid2.png); background-size: contain; } .logo:hover img { visibility: hidden; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too Perfect! It works great! Thank you! Link to comment
KwameAndCo Posted February 9, 2022 Share Posted February 9, 2022 On 1/18/2022 at 12:27 AM, nerdyartkid said: Perfect! It works great! Thank you! Please mark @bangank36's answer as the best solution to help other users in the same predicament! Cheers! Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 Some links may be affiliate/referral links. 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