I am working on an app where I could really use the notification badge on the app menu to alert users that they have new notifications, is there a bit of custom code I can use for this purpose?
My app is currently using the bottom menu style but it would be great to know how I can add this in the different types of app menus.
There is a code snippet that should be added to the Global JavaScript to add a badge notification to specific menu item
$('.hamburger, .fl-app-menu ul > li:nth-child(2) > .internal-link').addClass(
'add-notification-badge'
);
Keep in mind, number 2 should be changed to the number of your “Notifications” menu item, e.g. if the “Notifications” is the 10th menu item, number 2 in the code above should be changed to 10, like this:
$('.hamburger, .fl-app-menu ul > li:nth-child(10) > .internal-link').addClass(
'add-notification-badge'
);