Sabu Posted July 29, 2021 Posted July 29, 2021 (edited) Site URL: https://www.sabustudio.com Hi, I have set up my navigation for desktop, it is all working as I want on desktop, although I am having issues with it on mobile device. On desktop I have integrate this code so the folders redirect to specific pages: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $('.header-nav-folder-title[href="/furniture-folder"]').click(function() { window.location = "https://sabustudio.com/furniture"; }); $('.header-nav-folder-title[href="/object-folder"]').click(function() { window.location = "https://sabustudio.com/object"; }); $('.header-nav-folder-title[href="/lighting-folder"]').click(function() { window.location = "https://sabustudio.com/lighting"; }); Although, on mobile the folder navigation does not utilise the redirect link as it does on desktop, it just links to the folder contents. It currently goes as follows: I would like it to go: I am trying to remove/bypass the second hamburger menu page and instead wanting to use the redirect link. This enables better user experience for my product. I'm not sure if its possible to do this, but I imagine there would be a way to do this. Any help would be much appreciated! Thanks Edited July 29, 2021 by Sabu
tuanphan Posted July 30, 2021 Posted July 30, 2021 Hi. Use new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $('.header-nav-folder-title[href="/furniture-folder"], [data-folder-id="/furniture-folder"]').click(function() { window.location = "https://sabustudio.com/furniture"; }); $('.header-nav-folder-title[href="/object-folder"], [data-folder-id="/object-folder"]').click(function() { window.location = "https://sabustudio.com/object"; }); $('.header-nav-folder-title[href="/lighting-folder"], [data-folder-id="/lighting-folder"]').click(function() { window.location = "https://sabustudio.com/lighting"; }); </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!)
rrrrrrrrr Posted May 18, 2022 Posted May 18, 2022 URL: rthglmr.sqaurespace.com HI! I have the same issue and I can't get this code to work. I'd be so grateful for any ideas!
tuanphan Posted May 20, 2022 Posted May 20, 2022 On 5/18/2022 at 3:41 PM, rrrrrrrrr said: URL: rthglmr.sqaurespace.com HI! I have the same issue and I can't get this code to work. I'd be so grateful for any ideas! Can you check site url again? 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!)
Sabu Posted November 9, 2022 Author Posted November 9, 2022 Hi again, I have updated my website, I am now having issues with this code below, it works great for desktop, but it isn't functioning on mobile device. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $('.header-nav-folder-title[href="/furniture_folder"], [data-folder-id="/furniture-folder"]').click(function() { window.location = "https://sabustudio.com/furniture"; }); $('.header-nav-folder-title[href="/lighting_folder"], [data-folder-id="/lighting-folder"]').click(function() { window.location = "https://sabustudio.com/lighting"; }); </script> Site URL: https://www.sabustudio.com Any help would be greatly appreciated. Regards, Sam
tuanphan Posted November 12, 2022 Posted November 12, 2022 On 11/10/2022 at 6:37 AM, Sabu said: Hi again, I have updated my website, I am now having issues with this code below, it works great for desktop, but it isn't functioning on mobile device. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $('.header-nav-folder-title[href="/furniture_folder"], [data-folder-id="/furniture-folder"]').click(function() { window.location = "https://sabustudio.com/furniture"; }); $('.header-nav-folder-title[href="/lighting_folder"], [data-folder-id="/lighting-folder"]').click(function() { window.location = "https://sabustudio.com/lighting"; }); </script> Site URL: https://www.sabustudio.com Any help would be greatly appreciated. Regards, Sam Try this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $('.header-nav-folder-title[href="/furniture_folder"], [data-folder-id="/furniture_folder"]').click(function() { window.location = "https://sabustudio.com/furniture"; }); $('.header-nav-folder-title[href="/lighting_folder"], [data-folder-id="/lighting_folder"]').click(function() { window.location = "https://sabustudio.com/lighting"; }); </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