Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Activity Filter Nav Items Text to Icon


  • Nahum
    Participant

    @nahummadrid

    Trying to add icon in place of text but html is not allowed. Any help on how to allow html here.

    add_filter('bp_nouveau_get_activity_directory_nav_items', 'my_bp_nav_items_text');
    
    function my_bp_nav_items_text($nav_items) {
    
       $nav_items['all']['text'] =  __( '<i class="fas fa-at"></i>', 'buddypress' ); 
    
     return $nav_items;
    
    }
    
Viewing 1 replies (of 1 total)

  • Nahum
    Participant

    @nahummadrid

    found where this was not being allowed.

    in common/nav/directory-nav.php

    changed
    <?php bp_nouveau_nav_link_text(); ?>
    to
    <?php echo bp_nouveau_get_nav_link_text(); ?>

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar