Home › Forums › Support › How can I hide the secondary menu to those not logged in? This topic has 12 replies, 2 voices, and was last updated 7 years, 11 months ago by Tom. Viewing 13 posts - 1 through 13 (of 13 total) Author Posts April 21, 2016 at 9:06 am #188366 Pete How can I hide the secondary menu only to those not logged in? April 21, 2016 at 9:18 am #188374 TomLead Developer Lead Developer Give this a shot: body .secondary-navigation { display: none; } body.logged-in .secondary-navigation { display: block; } This reply was modified 7 years, 11 months ago by Tom. April 21, 2016 at 9:27 am #188376 Pete Nope and I tried this that worked but not when responsive (also dropped down the menu) #menu-top.secondary-menu.sf-menu {display:none;} .logged-in #menu-top.secondary-menu.sf-menu {display:block;} April 21, 2016 at 9:29 am #188377 TomLead Developer Lead Developer That’s not the same thing as the code I provided π April 21, 2016 at 9:30 am #188378 Pete the ‘nope’ referred to your code, mine only worked a bit π April 21, 2016 at 9:31 am #188379 TomLead Developer Lead Developer Can you link me to the site where mine isn’t working? April 21, 2016 at 9:32 am #188380 Pete http://sandgroper.net/ April 21, 2016 at 9:37 am #188381 TomLead Developer Lead Developer Can you replace your code with the code I provided? April 21, 2016 at 9:37 am #188382 Pete I did, nothing happened April 21, 2016 at 9:39 am #188383 Pete ok it’s running your css now April 21, 2016 at 9:41 am #188385 TomLead Developer Lead Developer I just adjusted the CSS above to be a little more specific – should work now: https://generatepress.com/forums/topic/how-can-i-hide-the-secondary-menu-to-those-not-logged-in/#post-188374 April 21, 2016 at 9:43 am #188386 Pete Great, thanks Tom π April 21, 2016 at 9:43 am #188388 TomLead Developer Lead Developer You’re welcome π Author Posts Viewing 13 posts - 1 through 13 (of 13 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In