BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Hiding All Members count on mobile devices
Tagged: All members
- This topic has 5 replies, 2 contibutors, and was last updated 8 years, 9 months ago by Anonymous.
Question
February 9, 2016 at 5:55 am #58611@awestrucktvI 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
February 9, 2016 at 6:32 am #58622@
AnonymousHi @awestrucktv, Please add this css code inside your boss theme’s custom css option
.is-mobile #members-all a span { display: none !important; }
Regards
February 9, 2016 at 6:47 am #58627@awestrucktvThanks! That really looks like it should work but for some reason it’s not working for me. Any idea why?
February 9, 2016 at 6:56 am #58629@
AnonymousHi @awestrucktv, Please paste your website url so I can check it (I have provided the code for all members page).
Regards
February 9, 2016 at 7:02 am #58630@awestrucktvThanks, here is my All Members URL http://awestruck.tv/activity/
February 9, 2016 at 7:52 am #58637@
AnonymousHi @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
- The question ‘Hiding All Members count on mobile devices’ is closed to new replies.