duhmingo Posted May 14, 2020 Share Posted May 14, 2020 I wanted to ask for help in adding a Home button to the Jones template. I have several pages and use the primary navigation to move between the pages. With help from the forums, i added the following code so that the logo can be used to navigate home, however when testing it wasn't very intuitive and users didn't know to click on the logo. Is there a way to add a conditional "Home" link in the primary navigation that displays only when the user is on pages outside of the homepage that can be used to return home? <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script> $(document).ready(function () { $(".logo-image a[href]").attr("href", "http://www.google.com/"); }); </script> Link to comment
tuanphan Posted May 15, 2020 Share Posted May 15, 2020 You can add home link in navigation, then I can give the code to hide it on homepage 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.