_yohandeschamps_ Posted July 20 Share Posted July 20 Hello. I realized that I was unable to make the Dropdown Title clickable when I was using Burger Nav on the Desktop. I understand the reason why, as it works like on mobile, but I was wondering if it will be possible to do it. My website is https://www.yodeschamps.com/. Thank you Link to comment
HoaLT Posted July 20 Share Posted July 20 4 hours ago, _yohandeschamps_ said: Hello. I realized that I was unable to make the Dropdown Title clickable when I was using Burger Nav on the Desktop. I understand the reason why, as it works like on mobile, but I was wondering if it will be possible to do it. My website is https://www.yodeschamps.com/. Thank you Clicking on it will show the subnav I check it works properly now. Or you want to have any other feature here? Press 👍 or mark my comment as solution if you find my sharing useful 🆒 Squarespace pinchzoom lightbox plugin (affiliate link) 👁🗨 360 degree photo viewer (affiliate link) Link to comment
_yohandeschamps_ Posted July 20 Author Share Posted July 20 @HoaLT. It always worked properly. No issue with the Sub Nav. I want the Titles to be linked as well to a page. Link to comment
Solution HoaLT Posted July 21 Solution Share Posted July 21 (edited) It is possible to implement js code. You can try adding the following code on the footer injection <script> document.addEventListener("DOMContentLoaded", (event) => { const dropdownLinks = document.querySelectorAll('.header-menu-nav-item > a[data-folder-id]'); if (dropdownLinks.length) { dropdownLinks.forEach((link) => { link.addEventListener('click', function(event) { event.preventDefault(); const hrefTo = event.target.getAttribute('href'); window.location.href = hrefTo; }); }) } }); </script> However, if we implement redirection to another page when clicking on the dropdown, it will prevent client users from opening the dropdown to access sub nav Edited July 21 by HoaLT Press 👍 or mark my comment as solution if you find my sharing useful 🆒 Squarespace pinchzoom lightbox plugin (affiliate link) 👁🗨 360 degree photo viewer (affiliate link) Link to comment
_yohandeschamps_ Posted July 21 Author Share Posted July 21 Thanks for your help. Yes, I will have to pass on this idea of a clickable Title in the Burger nav. as I cannot access the sub-nav anymore, but it was good learning. Thank you @HoaLT Link to comment
Estherjoy Posted July 24 Share Posted July 24 (edited) Hi Goodday please I need similar help with a website i am working on https://africa-thryves.squarespace.com/ Password ; Africa thryves I want the dropdown shop to be linked to that shop page that's currently there And have the rest as a normal dropdown under it that way i don't have two shop Edited July 24 by Estherjoy Link to comment
tuanphan Posted July 26 Share Posted July 26 On 7/24/2024 at 9:54 PM, Estherjoy said: Hi Goodday please I need similar help with a website i am working on https://africa-thryves.squarespace.com/ Password ; Africa thryves I want the dropdown shop to be linked to that shop page that's currently there And have the rest as a normal dropdown under it that way i don't have two shop You can follow this code https://forum.squarespace.com/topic/298872-can-i-add-a-dropdown-menu-to-an-existing-navigation-page/?do=findComment&comment=755888 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
Estherjoy Posted July 29 Share Posted July 29 Hello Thanks for your previous help but can you look into this reference site I like how the dropdown and header is with backgrounds and how the dropdown and i am looking to achieve that with css on my website can you help me please https://villageenterprise.org/about-us/ This is the website 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