Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Solved] Suggestion: Don't use the CSS class in multiple places

2 Posts
2 Users
1 Reactions
873 Views
Posts: 37
Topic starter
(@philraymond)
Trusted Member
Joined: 6 years ago

I want to hide my members' group and join dates but not their member titles, but I can't do that because you use the same css class for all 3:

<div class="profile-stat-data-item">Group: Registered</div>
<div class="profile-stat-data-item">Joined: 2013-04-12</div>
<div class="profile-stat-data-item"><span class="wpf-member-title wpfrt" title="Rating Title">Active Member</span></div>

It would be nice if you had different classes on everything. That goes for other parts of the forum, too. Thanks!


1 Reply
Alvina
Posts: 1860
Moderator
(@alvina)
Member
Joined: 6 years ago

Hi @philraymond,

You can hide the elements by using the parent/child structure.

In your case, if you want to hide the group and join dates, you should use the following codes:

.profile-stat-data-item:first-of-type {
display: none !important;
}
.profile-stat-data-item:nth-of-type(2) {
display: none !important;
}

The CSS codes should be added it the Dashboard > Settings > Styles admin page "Custom CSS code" textarea.

Don't forget to delete all caches and press CTRL+F5(twice) on the frontend before checking.