The discussion revolves around adding CSS classes for user groups to a user profile page in Discourse. baseline-mobile wants to hide the summary section for suspended users by using the group-suspended CSS class, but notes that these classes aren’t appearing on the profile page. Falco clarifies that the existing theme component only applies group classes to the logged-in user, not the viewed user. baseline-mobile seeks a solution, and Falco explains that modifying the profile page to include the viewed user’s group classes requires hooking into Ember code, referencing the Developer’s guide to Discourse Themes for implementation details.
I’m trying to hide the “summary section” of a user when that user is in a certain group, like “suspended” (and viewing that user profile page as a non-admin). I already have this theme component installed, CSS Classes for Current User's Groups, and I’m using the recommended CSS that was provided:
The problem is, this CSS class, “group-suspended”, doesn’t appear on the page of a user profile that is suspended. I don’t see any “group-” CSS classes on the page.
What can I do to get this “group-” CSS class to appear on a user profile page?