MayaViolet Posted December 6, 2021 Posted December 6, 2021 (edited) Site URL: https://therosemountinn.squarespace.com/ I've adjusted the site's desktop menu so that it functions as if it were mobile (ie nav bar is hidden, then the menu expands and .header-menu overly is displayed when "Menu" is clicked). However, I'd like to change the button onclick trigger to onmouseover, so that it opens when someone hovers over Menu, but I'm not well-versed enough in JS to be able to do so on my own. Would appreciate any help - thank you! Edited December 8, 2021 by MayaViolet Hiding access to live site Beyondspace 1
Beyondspace Posted December 8, 2021 Posted December 8, 2021 On 12/7/2021 at 3:31 AM, MayaViolet said: Site URL: https://therosemountinn.squarespace.com/ I've adjusted the site's desktop menu so that it functions as if it were mobile (ie nav bar is hidden, then the menu expands and .header-menu overly is displayed when "Menu" is clicked). However, I'd like to change the button onclick trigger to onmouseover, so that it opens when someone hovers over Menu, but I'm not well-versed enough in JS to be able to do so on my own. Website w/ password here. Would appreciate any help - thank you! So you need the side menu to be expanded on hover? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
MayaViolet Posted December 8, 2021 Author Posted December 8, 2021 4 hours ago, bangank36 said: So you need the side menu to be expanded on hover? Yes - Tuan Phan actually helped me out with some script code!
Beyondspace Posted December 9, 2021 Posted December 9, 2021 6 hours ago, MayaViolet said: Yes - Tuan Phan actually helped me out with some script code! It 's good to know that BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
bycrawford Posted July 20, 2023 Posted July 20, 2023 Hey! What was the code from @tuanphan for this? TIA! Sam Crawford | by Crawford. Multi-award-winning Squarespace expert e. sam@bycrawford.com w. bycrawford.com 💸 How to scale your income as a Squarespace designer: Watch the video 📱 Hire me to build your Squarespace website: Book a call Did my comment help? To help others benefit, leave a like and mark my answer as 'best'. This lets users scroll straight to the solution they need.
MayaViolet Posted July 21, 2023 Author Posted July 21, 2023 9 hours ago, bycrawford said: Hey! What was the code from @tuanphan for this? TIA! I believe it was the following? I actually have it not active on the client site because we developed a diff solution, and the code link I found in my email shows up with an error, so not sure what if this will work! <!---Menu Hover--> <script> $('.header-burger').hover(function(){ $('body').toggleClass("header--menu-open"); }); </script> <!---END Menu Hover--->
bycrawford Posted July 21, 2023 Posted July 21, 2023 7 hours ago, MayaViolet said: I believe it was the following? I actually have it not active on the client site because we developed a diff solution, and the code link I found in my email shows up with an error, so not sure what if this will work! <!---Menu Hover--> <script> $('.header-burger').hover(function(){ $('body').toggleClass("header--menu-open"); }); </script> <!---END Menu Hover---> Thank you Alyssa! It doesn't work for me either. @tuanphan - would you be able to take a look at this site for me please: https://www.lanmark.net/ And let me know whether we could do the hover effect for this burger menu? Thank you 🙂 Sam Crawford | by Crawford. Multi-award-winning Squarespace expert e. sam@bycrawford.com w. bycrawford.com 💸 How to scale your income as a Squarespace designer: Watch the video 📱 Hire me to build your Squarespace website: Book a call Did my comment help? To help others benefit, leave a like and mark my answer as 'best'. This lets users scroll straight to the solution they need.
tuanphan Posted July 22, 2023 Posted July 22, 2023 Add to Last Line in Code Injection > Footer <script> $('.header-burger').hover(function(){ $('body').addClass("header--menu-open"); $('.close-icon').removeClass("header--menu-open"); }); </script> 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