Hiding items in hamburger menu

I learned a lot from this answer. Thank you very much!