BuddyBoss Home – Web Support Forums Themes Boss. theme Hiding All Members count on mobile devices

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #58611
    @awestrucktv

    I am able to hide the “All Members” count on the activity stream for all screens except mobile devices. Can anyone suggest some CSS to hide the total count on mobile devices (see attachment).Thanks!

    Answers

    #58622

    Anonymous
    @

    Hi @awestrucktv, Please add this css code inside your boss theme’s custom css option

    
    .is-mobile #members-all a span {
            display: none !important;
    }
    

    Regards

    #58627
    @awestrucktv

    Thanks! That really looks like it should work but for some reason it’s not working for me. Any idea why?

    #58629

    Anonymous
    @

    Hi @awestrucktv, Please paste your website url so I can check it (I have provided the code for all members page).

    Regards

    #58630
    @awestrucktv

    Thanks, here is my All Members URL http://awestruck.tv/activity/

    #58637

    Anonymous
    @

    Hi @awestrucktv, You will have to remove it from coding.

    Please copy the buddypress folder from main theme (boss-parent theme) to child theme and edit the activity index.php

    the path you have to edit will be : boss-child/buddypress/activity/index.php

    and replace the code at line 24:

    <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li>

    with this code:

    <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members', 'boss' ), bp_get_total_member_count() ); ?></a></li>

    Regards

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Hiding All Members count on mobile devices’ is closed to new replies.