This topic has 5 replies, 2 voices, and was last updated 6 years by Kieran_SQ.

  • Author
  • #165860
     psmorrow
    Participant

    Hi,

    Is it possible to hide the member count from each group on groups page?

    Many thanks!

    Pete

    #165887
     Kieran_SQ
    Moderator

    Hi @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 file groups-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 solution

    If 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.

    #166011
     psmorrow
    Participant

    Looks great. Thanks! Will this change be overwritten with Theme updates? Is there a css option available?

    Many thanks again!

    #166091
     Kieran_SQ
    Moderator

    Hi @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 solution

    If 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.

    #166108
     psmorrow
    Participant

    Thanks!

    #166178
     Kieran_SQ
    Moderator

    You’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 solution

    If 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.

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?