The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] 0 comments
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
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
Show original
Translating...
Oct 22, 2021 1:49 pm
(@albert)
Active Member
Joined: 4 years ago
Hi everyone.
Is it possible to leave the 'number of comments' field blank when there are no published comments yet?
I'd rather see nothing than '0 comments'?
Thanks alot.
Albert
Support
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
Show original
Translating...
Oct 22, 2021 5:30 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi Albert,
You can use this custom code:
if (!function_exists("wpdGetCommentsCountText")) {
add_filter("wpdiscuz_comment_count_phrase", "wpdGetCommentsCountText", 10, 2);
function wpdGetCommentsCountText($text, $commentsCount) {
$count = (int) $commentsCount;
if ($count) {
return $text;
}
return "";
}
}
Put it in the active theme fucntcions.php file.
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
Show original
Translating...
Oct 22, 2021 7:40 pm
(@albert)
Active Member
Joined: 4 years ago
Thanks for your quick reply but it doesn't work as I expected.
Instead of "0 comments" a plain and simple "0" is displayed.
The word "comments" is gone but a "0" with a green underline stays.
Wich is a bit confusing but a quite funny also.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8208
Oct 23, 2021 11:08 am
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
Show original
Translating...
@albert,
Let me ask the developers if there is an easy solution we can provide you. I'll update the topic once I get a response from our team.
Support
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
Show original
Translating...
Oct 23, 2021 2:55 pm
(@asti)
Illustrious Member
Joined: 8 years ago
@albert,
Please put this code in the functions.php file as well.
add_filter('get_comments_number', function ($count){
if($count == 0){
return '';
}
return $count;
});
Then use this CSS code for removing the extra padding:
.wpd-thread-info {
padding-right: 0;
}
Put the code in the Top Admin Bar > Customize > Additional CSS > "Additional CSS" textarea, save it, delete all caches and check again.
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
Show original
Translating...
Oct 24, 2021 10:34 am
(@albert)
Active Member
Joined: 4 years ago
Yes, it works perfectly!
Thanks a lot.
I'm rating you 5++++ stars right now in your page