Notifications
Clear all

How to set the number of badges to display

2 Posts
2 Users
0 Reactions
860 Views
Posts: 39
Customer
Topic starter
(@andy-tsang)
Member
Joined: 2 years ago

Sorry for bother you again, i want to know how to set the number of badges to display, for example now it showing 4 badge, i want to only show 2

2022 12 26 211239
1 Reply
Astghik
Posts: 6153
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

wpDiscuz doesn't control the number of badges. It just gets the badges via the myCRED plugin hooks. You should check and see if myCRED has such an option.

Alternative: you can use the CSS code:

#wpdcom .wpdiscuz-mycred-badges-wrap .col-xs-12 .the-badge{
    display:none;
}
#wpdcom .wpdiscuz-mycred-badges-wrap .col-xs-12 .the-badge:first-child, #wpdcom .wpdiscuz-mycred-badges-wrap .col-xs-12 .the-badge:nth-child(2){
    display:block !important ;
}

This is just an example.

You can for example leave the third child. 

The topic has been moved to the correct forum. 

Reply
Share:
Scroll to top