-
Author
-
July 2, 2017 at 05:48 #165860
psmorrow
ParticipantHi,
Is it possible to hide the member count from each group on groups page?
Many thanks!
Pete
July 2, 2017 at 16:43 #165887Kieran_SQ
ModeratorHi @psmorrow,
Thanks for your question, you can remove the count on the groups page by following these steps.
1. Copy this file from the main theme
/wp-content/themes/kleo/buddypress/groups/groups-loop.php
2. Paste your copied file into the child theme directory/wp-content/themes/kleo-child/buddypress/groups/
(you will need to recreate the file structure if you haven’t already got these folders in your child theme)
3. Edit your new child theme filegroups-loop.php
and remove the line<span class="member-count"><?php echo preg_replace('/\D/', '', bp_get_group_member_count()); ?></span>
4. Save and clear caches, it will now no longer show the member count.Hope this helps,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
July 3, 2017 at 17:33 #166011psmorrow
ParticipantLooks great. Thanks! Will this change be overwritten with Theme updates? Is there a css option available?
Many thanks again!
July 3, 2017 at 20:56 #166091Kieran_SQ
ModeratorHi @psmorrow,
Using a child theme makes your alterations update safe, so you’ll keep this functionality as KLEO updates.
If you wanted to do it with CSS you can try the following in your child theme’s style.css or in Theme Options > Quick CSS. You may need to clear your website cache, browser cache and purge any services like CloudFlare or MaxCDN
#buddypress #groups-list .item-avatar .member-count { display:none !important; }
Thanks,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
July 4, 2017 at 06:19 #166178Kieran_SQ
ModeratorYou’re very welcome @psmorrow 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.