Remove "Activity" from group page


Hello there,

When I access a group via menu => groups and then clicking on a group, there is this Activity button that shows the activity of the group’s members. Is it possible as an admit to remove this Activity field?
Forum users that go to the group page to look for information about the group may find it confusing to find information about the members’ activity that is completely unrelated to the group itself.

Thanks for your help!

(Sam Saffron) #2

Yes, use a site customization to hide it via CSS

(Jide Ogunsanya) #3

Very confusing. I didn’t understand whats up not until I created a group. I wish I can create a visible group that will only display the members.

(Carson) #4

Yes, this seems confusing to me as well.

(Jeff Atwood) #5

What’s confusing about it? You’re looking at all activity of members of the group. That is by definition related to the group.

This won’t be changing. If you wish to hide it, use CSS to do so.

(Steve Combs) #6

If you use groups for permissions for a private category which is kind of the main purpose of a group, it does get a little weird to see all the other posts of group members for other categories.

The last time I tried hiding that Activity tab I could only target the entire set of tabs. Has anyone sorted the CSS for just the Activity tab and care to share?

(Joshua Rosenfeld) #7

There are not specific classes per button, so hiding it will be hard. I’ll take a look next week and see if I can add some classes quick.

(Carson) #9

Hi @codinghorror,

Obviously I’m still exploring Discourse, so the confusion is easily all on my end. I suppose I’ve been habituated to linking groups with discussion areas. So, the category is the place where a specific group’s activity takes place. But, obviously the group members might contribute across the site. And this would be helpful for seeing all of the posts from your staff, moderators, or another group of some kind. At this early stage of understanding Discourse, I think if the tab read “Site Activity” that would be more clear.

(Joshua Rosenfeld) #10

OK @scombs, PR has been submitted. Once the tests pass and it get’s merged, you can hide a tabs with

.group .nav-pills .button-class-here {
    display: none;

Valid button classes are members, activity, edit, logs

Edit: PR has been merged.

(Jide Ogunsanya) #11

Good job but I hope it can work for specific groups too. :wink:

(Joshua Rosenfeld) #12

At this moment it cannot. We do not have any group-specific classes here. I’ll see what I can do.

(Joshua Rosenfeld) #14

OK, group-specific class added.

You can now use: .nav-pills .button-class-here {
    display: none;

(Steve Combs) #15

@jomaxro it looks like the Activity tab is hidden on desktop as expected but still shows on mobile.

I include the CSS in Common (and then on Mobile, just to be sure).

Is there a fix for mobile? Thanks very much.

(Daniela) #16

Try to add another line of CSS preceded by .mobile-view, eg:

.mobile-view .group .group-name-here .nav-pills .button-class-here {display: none;}

(Steve Combs) #17

Unfortunately, that additional line with .mobile-view didn’t work. I have tried this on multiple browsers.

(Joshua Rosenfeld) #18

OK, the classes are different on mobile. Also, it looks like we’re going to need a !important due to the specificity of the existing target. .mobile-nav .button-class-here {
    display: none !important;

Also, I had a typo above. no space between .group and .group-name-here.