Hi,
Thanks I sorted it out. For anyone who needs it, this is what I changed in /includes/helper-main-menu.php around line 42:
if(strpos( $headerS['header_secondary_menu'], 'extra_header_active') !== false )
{
//display the small submenu
if ( is_user_logged_in() ) {
$user = wp_get_current_user();
$nav = "<div id='header-welcome'>Welcome <a href='wp-admin/profile.php'>". $user->display_name ."</a></div>";
//echo "<div id='header-welcome'>Welcome ". $user->display_name ."</div>";
}
else {
$avia_theme_location = 'avia2';
$avia_menu_class = $avia_theme_location . '-menu';
$args = array(
'theme_location'=>$avia_theme_location,
'menu_id' =>$avia_menu_class,
'container_class' =>$avia_menu_class,
'fallback_cb' => '',
'container'=>'',
'echo' =>false
);
$nav = wp_nav_menu($args);}
}
Hello,
header.php does not have that line. It’s in the helper-main-menu.php line 57.
When I do paste the is_user_logged_in snippet it’s not doing so correctly. See attached.
I would like the ‘welcome user’ message to hide the ‘Login’ ‘Registration’ links.