• Resolved epgb101

    (@epgb101)


    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 10 months, 3 weeks ago by epgb101.
    • This topic was modified 10 months, 3 weeks ago by epgb101.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing WordPress notification alert colour from green to another colour’ is closed to new replies.