What are the "standard" names for menu locations
-
I’ve got the problem described in this link
https://wordpress.stackexchange.com/questions/195708/editing-removing-secondary-menu-from-divi
which, briefly, boils down to wanting to control menus between logged-in and logged-out states.
The code below (from that link) works, except, for the ‘MENU LOCATION’ value.
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args', 999 ); function my_wp_nav_menu_args( $args ) { if ( 'MENU LOCATION' == $args['theme_location'] ) { if( is_user_logged_in() ) { $args['menu'] = 'logged-in'; } else { $args['menu'] = 'logged-out'; } } return $args; }
My question is, what is the name of the Primary Menu location in WordPress? Or is it dependent on theme (in this case DIVI)? (And of the secondary and footer menus as well.)
I tried “primary” as a guess, and that did not work.
Any help with this would be appreciated.
Thanks!
- The topic ‘What are the "standard" names for menu locations’ is closed to new replies.