LaurenD Posted March 21, 2021 Share Posted March 21, 2021 Site URL: https://www.laurendenitzio.com By default, the Wells template displays all navigation folders as expanded in the mobile menu, so you see all sub pages. I want people to be able to click on a folder to expand it, otherwise the mobile menu is way too busy. Is there code injection I can use to collapse the folders in the mobile menu? Thanks so much! https://www.laurendenitzio.com Link to comment
Beyondspace Posted March 23, 2021 Share Posted March 23, 2021 On 3/22/2021 at 12:52 AM, LaurenD said: Site URL: https://www.laurendenitzio.com By default, the Wells template displays all navigation folders as expanded in the mobile menu, so you see all sub pages. I want people to be able to click on a folder to expand it, otherwise the mobile menu is way too busy. Is there code injection I can use to collapse the folders in the mobile menu? Thanks so much! https://www.laurendenitzio.com Advanced code injection may helps /* Put this into Settings->Advanced->Code injection->Footer */ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <style> .mobile-folder > ul { display: none; } </style> <script> $(document).ready(function() { $(document).on("click", ".mobile-folder > a", function(e) { e.preventDefault(); $(this).next("ul").slideToggle() return false; }) }); </script> 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
LaurenD Posted March 23, 2021 Author Share Posted March 23, 2021 That worked! Thank you so much! I really appreciate it. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.