hrushton Posted July 17, 2020 Share Posted July 17, 2020 Site URL: https://hannahrushton.com/info I need to hide a menu item (the "info" page linked above) from a few pages on my website. Please let me know if that's possible! Thank you so much in advance! Link to comment
derricksrandomviews Posted July 17, 2020 Share Posted July 17, 2020 Easy to hid a nav item for the whole site, just put the page in the unlinked section of your website. Hiding that item on certain pages is a bit tricky. Hide page from Navigation add to page where you don't want it in advanced header code injection. replace the word contact with the info page url slug. If it happens to be "info" put that there. Hope it works for you. <style> .header-nav [href="/contact"] { display: none; } .header-menu-nav [href="/contact"] { display: none; } <style> Link to comment
hrushton Posted July 18, 2020 Author Share Posted July 18, 2020 Hi Derrick, Unfortunately that didn't work for some reason. The page that I inserted the code on just goes blank. This is the CSS code that I was using to hide the homepage from specific pages ... would this work for the "info" page as well? body#collection-5f0f800fa6123d66a75ae516 .nav-item.homepage { display: none; } Link to comment
derricksrandomviews Posted July 18, 2020 Share Posted July 18, 2020 (edited) The code I posted did the same thing on my site, blanked out the page I inserted in. I guess you could change the hompage name to info and give your code a try, can't hurt anything. Edited July 18, 2020 by derricksrandomviews 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