Title: Creating submenus not drop downs
Last modified: November 22, 2021

---

# Creating submenus not drop downs

 *  [driftloki](https://wordpress.org/support/users/driftloki/)
 * (@driftloki)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/creating-submenus-not-drop-downs/)
 * I am trying to create a public and private media vault. the private data section
   has some submenus. i don’t want these to be in the form of a dropdown menu. instead,
   i want to press on the private data section, enter a password, then a 2nd row
   of menus pop-up under the 1st row. this would allow me to hide the name of the
   sub menus under the password as well. any help, i have looked for about an hour,
   and i will continue looking, but i thought to ask here as well.
    -  This topic was modified 4 years, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcreating-submenus-not-drop-downs%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/creating-submenus-not-drop-downs/#post-15096664)
 * There are a number of membership plugins that let you manage who can see what,
   but they do not typically manage menu visibility, rather what pages one can access.
 * WP menus aren’t true dropdowns, they use CSS to mimic dropdown behavior. They
   are actually just an unordered list of links. It’s feasible to have JavaScript
   fetch protected menu items and display them only after a proper password had 
   been entered, but it may need to be custom coded.
 * I would not recommend using the password protected page mechanism because it 
   means distributing a shared password. It’s better to require user login and only
   display certain content to logged in users, or users with a specific role or 
   capability. This is what most membership plugins do. Then users can manage their
   own passwords, changing at will without affecting other users.
 * Applying this concept to a menu scheme, a specific part of the menu is only displayed
   to logged in users or those with a particular role/capability. The WP nav menu
   function has a number of filters where one could add or remove elements based
   on the user.

Viewing 1 replies (of 1 total)

The topic ‘Creating submenus not drop downs’ is closed to new replies.

## Tags

 * [sub-menu](https://wordpress.org/support/topic-tag/sub-menu/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/creating-submenus-not-drop-downs/#post-15096664)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
