Notifications
Clear all
Topic starter
30/08/2019 6:16 pm
We would like to enable voting but only if we can disable the downvote option. We just want a 'like' or 'heart' option. Is that possible?
30/08/2019 6:21 pm
Hi @skettyd,
I'm sorry, but wpDiscuz doesn't have such a feature.
If you'd like to hide the Vote Down option, you should use the following CSS code, add it in Dashboard > Comments > Settings > Styling > "Custom CSS code" textarea:
span.wc-vote-result.wc-vote-result-dislike, span.wc-vote-link.wc-down.wc-separate.wc_vote.wc_not_clicked {
display: none !important;
}
We just want a 'like' or 'heart' option.
Please add the following code in your active theme's functions.php file:
if (!function_exists('custom_vote_up_icon')) {
function custom_vote_up_icon($voteFaUpImg, $comment, $currentUser) {
return ["fas", "fa-heart", "wc-vote-img-up"];
}
}
Topic starter
30/08/2019 8:54 pm
@astghik
I'll test this out - thank you!!!