Avada Forums Community Forum Top menu and main menu Reply To: Top menu and main menu

Post count: 36

I figured out that’s happen beacuse of this line:

function my_wp_nav_menu_args( $args = ” ) {

if( is_user_logged_in() ) {
$args[‘menu’] = ‘logged-in’;
} else {
$args[‘menu’] = ‘logged-out’;
return $args;
add_filter( ‘wp_nav_menu_args’, ‘my_wp_nav_menu_args’ );

i added to my functions.php to shows different types menus in top bar for logged in and logged out user. How can i add main menu to it?