Changing WordPress notification alert colour from green to another colour

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.

  • This topic was modified 12 hours, 47 minutes ago by epgb101.
  • This topic was modified 12 hours, 45 minutes ago by epgb101.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer