Hi bimofix,
thumbs are font-awesome icons in wpDiscuz latest version. you don’t need to change any images. If you can, just change icon class.
I don’t know where i can change the icon class… There are a lot of files. Do you know which file it is?
Use filter hooks instead of hard-coding, put this in your active theme functions.php:
function my_wpdiscuz_vote_up_icon($content){
$icon = 'fa-plus-circle'; //change to other icon class
$content = '<i class="fa '.$icon.' wc-vote-img-up" style="vertical-align: bottom !important;"></i>';
return $content;
}
function my_wpdiscuz_vote_down_icon($content){
$icon = 'fa-minus-circle'; //change to other icon class
$content = '<i class="fa '.$icon.' wc-vote-img-down" style="vertical-align: bottom !important;"></i>';
return $content;
}
add_filter ( 'wpdiscuz_vote_up_icon', 'my_wpdiscuz_vote_up_icon');
add_filter ( 'wpdiscuz_vote_down_icon', 'my_wpdiscuz_vote_down_icon');
You can find all icons and classes here:
https://fortawesome.github.io/Font-Awesome/icons/
You should change $icon value in my_wpdiscuz_vote_up_icon()
and in my_wpdiscuz_vote_down_icon()
functions.
Hey,
I have similar issue but I want to change the font to WordPress Dashicons.
Is there any way to do that?
Thanks in advance.
The value of variable $content
in each function can be changed to any HTML/icon you want.
Hey,
Thanks for the help. I was able to change my icons. But few css problem
I would like to remove line-height: 13px;
from the #wpcomm .wc-comment-footer .wc-vote-link i
Any way to do that? through theme’s functions?
please leave some URL to allow us inspect css issues.
it’s on my localhost. I’m testing it and designing it for my new website.
But here’s the screenshot:
View post on imgur.com
I need html page to be able inspect css issues. Screenshot doesn’t help. Just let me know once this will be moved online.