Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hiding Flashing Dynamic Nav Counts at 0 – Nouveau


  • Nahum
    Participant

    @nahummadrid

    Trying to get to the best way to avoid those flashing number counts in the activity navigation tabs when at 0 and the page loads.

    What I ended up doing is overriding the /common/nav/directory-nav.php template from:

    <?php if ( bp_nouveau_nav_has_count() ) : ?>
    <span class="count"><?php bp_nouveau_nav_count(); ?></span>
    <?php endif; ?>

    to

    <?php if ( bp_nouveau_nav_has_count() ) : ?>
    <span class="count c-<?php bp_nouveau_nav_count(); ?>"><?php bp_nouveau_nav_count(); ?></span>
    <?php endif; ?>

    then
    .buddypress-wrap .bp-navs li.dynamic a .count.c-0 { display:none; }

    Anyway to get at this via bp_nouveau_get_nav_count Rather not have to override that template.

  • You must be logged in to reply to this topic.
Skip to toolbar