I was looking to remove the following from all user profiles in order to disable the viewing of groups and trust levels by users. Is this something that would be plausible to do with a theme component?
dt.groups
dd.groups
dd.trust-level
dt.trust-level
「いいね!」 1
eviltrout
(Robin Ward)
2019 年 7 月 25 日午後 8:30
2
Yes but I should advise that those fields will still be available in the API.
「いいね!」 2
Thank you! That’s good to know - shouldn’t be an issue though. Do you think that inserting this into Common
would do the trick?
#dt.groups {
display:none;
}
(altering for each, etc)
「いいね!」 1
eviltrout
(Robin Ward)
2019 年 7 月 26 日午後 1:18
4
<dt>
is not an id so you’d want to do dt.groups
but yes that is the right approach.
「いいね!」 1
SidV
2019 年 7 月 26 日午後 1:34
5
If you add this on your CSS will work, I tested on my site:
.details .secondary .trust-level {display:none!important;}
When you mean “the groups”, what info do you need to hide?
Can you please put a screenshot ?
「いいね!」 2
Thank you @SidV ! I will try that now. I was referring to the groups/trust levels here on the user profile:
This worked with .groups
as well!
「いいね!」 1