Hide Notification Count When Count is 0
I’m building a notification dropdown outside of the logged-in users profile on a sidebar.
I’m using this line of code to get the count
<?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>
The notification count does appear, and for the correct user, but does not go away once the count is 0.
How can I get the count to display:none when the count is 0?
This is my first ever support post on any platform, so please take it easy on me if I didn’t include all the proper information. Thanks!
- You must be logged in to reply to this topic.