• 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 3 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    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.