AI Assistant
Notifications
Clear all

How to set the number of badges to display

2 Posts
2 Users
0 Reactions
2,027 Views
Posts: 39
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@andy-tsang)
Member
Joined: 3 years ago
[#11046]

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: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 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