Override vote icons in 4.1.4
Hi – is there any function that can override the voting icons ? I copied /includes/votes.php to /mytheme/anspress/includes/votes.php to make changes, but this doesn’t seem to work.
Any pointers ?
Thanks
Question is closed for new answers.
itomhq selected answer
Like a piece of cake,
https://gist.github.com/rahularyan/0f0e08214e008dd9c76827adf15593e6
Make sure to update to 4.1.5 first.
Rahul Aryan commented on answer
Rahul Aryan commented
Hello Mark, This is a tested code. If you put it in theme function it will work.
Hmm. Updated to 4.1.5 and used below snippet
function ap_ap_vote_btn_html( ‘ap_vote_btn_html’, $html, $post ) {
$html = str_replace( ‘apicon-thumb-up’, ‘fa fa-angle-double-up’, $html );
// $html = str_replace( ‘apicon-thumb-down’, ‘fa fa-angle-double-up’, $html );
return $html;
}
add_filter( ‘ap_vote_btn_html’, ‘ap_ap_vote_btn_html’, 10, 2 );
But this doesn’t seem to work. I updated to 4.1.5 yesterday – was this added since then ?