I have a menu set for the top socket.
I would like to change the color of the text
Currently I have
/* Top Socket Menu Color */
#header_meta {
background-color: red;
}
Which does make the background red, but the words are currently black.
I tried to add
color: white !important;
but that doesnt help
How can I make them white please
Thanks
Hey wealthyone,
Can we check your web site URL also please?
Thank you very much
Best regards,
Basilis
Hi,
Please try the following in Quick CSS under Enfold->General Styling:
#header_meta .sub_menu li a {
color:#fff !important;
}
Best regards,
Rikard
Yes Fantastic.
That worked..
So is this code correct or is there a way to nest it together
#header_meta {
background-color: red;
}
#header_meta .sub_menu li a {
color:#fff !important;
}
oh and one more item for this menu.
Is it possible to have one that says Welcome ( username)
So when a member logs in, then it will say Welcome (username ) in the top menu before the rest of the items.
Have seen it on other sites and have code for one but not sure of what to change and where to put it.
Maybe you already have some code?
thanks
SOLUTION FOUND
Hi,
Please add following code to Functions.php file of your child theme in Appearance > Editor
function avia_username_sc(){
$current_user = wp_get_current_user();
if(is_user_logged_in ()){
$output = ‘<span class=”custom-un”>Welcome ‘ . $current_user->user_login . ‘</span>’;
}
else {
$output = ‘Login‘;
}
return $output;
}
add_shortcode( ‘username’, ‘avia_username_sc’ );
add_filter(‘wp_nav_menu_items’, ‘do_shortcode’);
then go to Appearance > Menus and a new custom link to your secondary menu with # for URL and [username] for navigation label.
Best regards,
Yigit
Hi,
Thank you for posting the soltuion, we much appreciate it :)
Best regards,
Basilis