Notifications
Clear all

Disabling downvotes/dislikes

3 Posts
2 Users
0 Likes
1,045 Views
(@skettyd)
Member Customer
Joined: 6 years ago
Posts: 2
Topic starter  

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?


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5912
 

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"];
}
}

   
ReplyQuote
(@skettyd)
Member Customer
Joined: 6 years ago
Posts: 2
Topic starter  

@astghik

I'll test this out - thank you!!!


   
ReplyQuote
Share:
Scroll to top