Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

Disabling downvotes/dislikes  

  RSS

skettyd
(@skettyd)
Member Customer
Joined: 2 years ago
Posts: 2
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?


Quote
Astghik
(@astghik)
Support Team Admin
Joined: 3 years ago
Posts: 4330
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"];
}
}

ReplyQuote
skettyd
(@skettyd)
Member Customer
Joined: 2 years ago
Posts: 2
30/08/2019 8:54 pm  

@astghik

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


ReplyQuote
Share: