• Hi I installed and and it works but the notification-counter does not get displayed.
    This is how it is rendered. Not compatible with the theme? How can I update it?

    <div class=”gp-profile-button gp-header-button menu-item gp-standard-menu gp-has-menu”>

    Profile Photo

    1

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Thank you for using the plugin. Yes, it seems the css classes are incompatible.

    Will you be able to add a few lines of js in your theme’s js if I shared the code?

    The plugin fires certain event when new notifications are received and we can use that to update the count.

    Regards
    Brajesh

    Thread Starter adbec

    (@adbec)

    Hi,

    Yes I will be able to change the code!

    Thanks

    Thread Starter adbec

    (@adbec)

    Hi Brajesh,

    Any news on this? Thanks!

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    I am sorry I haven’t been able to post. Please allow me till tomorrow to post the code.

    Thank you
    Brajesh

    Thread Starter adbec

    (@adbec)

    No problem – looking forward for the update!

    Thanks again!

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Thank you for the patience.

    with the live notifications 2.1, you can update count like this

    
    jQuery(document).on('bpln:new_notifications', function (evt, data) {
        if( data.count) {
            bpln.updateCountText( jQuery('selector'), data.count );
        }
    });
    

    You will need to change the “selector” with actual css selector of the element showing count.

    • This reply was modified 6 years, 1 month ago by Brajesh Singh. Reason: posted too early
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Notifications counter does not get updated’ is closed to new replies.