• Resolved 9thlife

    (@9thlife)


    Hi there,

    I am testing your theme before purchasing. I’m using your CSS class method to add the Unread message count to WP Menu. This works, but it only shows the unread count on the actual Message page. Any other page I only get the Nav Title (before the <span>.

    My nav title is this:
    <span class=”fep_unread_message_count”></span> Messages

    Functions.php is this
    add_filter(‘fep_filter_notification_call_on_ready’, ‘__return_true’ );

    Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter 9thlife

    (@9thlife)

    Sorry, I figured it out. If the site-wide notification bar is disabled, then the nav menu count doesn’t show on other pages. I’ve had to use CSS display: none to get rid of the bar. Cheers,

    Plugin Author Shamim Hasan

    (@shamim51)

    Can you add following code in functions.php

    add_action( 'wp_enqueue_scripts', function(){
        wp_enqueue_script( 'fep-notification-script' );
    });
    

    Let me know if that works when site-wide notification bar is disabled.

    Thread Starter 9thlife

    (@9thlife)

    Works perfect – thanks for your quick reply.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Unread count in Nav Menu using your CSS Class method’ is closed to new replies.