• Hey!

    I would like to change the thumbs-up/down-image. I know i can just overwrite the img with the name thumbs-down.png. My problem is, that I would like to change the PNG-image with a SVG-image, and I don’t know in which file I have to change the code…

    Thanks for the help!

    Best regards

    https://wordpress.org/plugins/wpdiscuz/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    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.

    Thread Starter bimofix

    (@bimofix)

    I don’t know where i can change the icon class… There are a lot of files. Do you know which file it is?

    Plugin Author gVectors Team

    (@gvectors-team)

    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.

    Plugin Author gVectors Team

    (@gvectors-team)

    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?

    Plugin Author gVectors Team

    (@gvectors-team)

    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

    Plugin Author gVectors Team

    (@gvectors-team)

    I need html page to be able inspect css issues. Screenshot doesn’t help. Just let me know once this will be moved online.

    sure.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘thumbs-down / thumbs-up from PNG to SVG’ is closed to new replies.