The problem was a php code added to my child.
I added the code just to show different menu to logged-in/logged-out users. i really need that function, but im not good at php at all.
Sir, can you please fiddle the code to fit with both the primary and the secondary menu? I want both the primary and the secondary be shown to a logged-in user while a different menu shown to a logged-out user. here is the code:
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’ );
Thank you in advance.