Does anyone have a snippet that would let me change the little round alert icons (notifications/messages etc) in the user menu top right of any page from green/blue to red?
I found this – but the crucial part I’d need (I think?) – ‘ADD CLASS HERE’ (see below) is left out;
//notification alerts for posts
function my_nav_menu_notif_counter($menu) {
if (!is_user_logged_in())
return $menu;
else
$countntf = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
$notif="<a class="notices" href="" . bp_get_notifications_unread_permalink() . '"><span class="noticecount'. (($countntf>0) ? ' NEW CLASS HERE':'') .'"><i class="noticecounttitle">Notifications</i>'. $countntf .'</span></a>';
$menu = $menu . $notif;
return $menu;
}
Thanks for any suggestions
Ed.