Override vote icons in 4.1.4

Solved7.39K viewsCoreicons mods voting
0

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.
selected answer
0

Like a piece of cake,

https://gist.github.com/rahularyan/0f0e08214e008dd9c76827adf15593e6

Make sure to update to 4.1.5 first.

commented on answer

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 ?

Hello Mark, This is a tested code. If you put it in theme function it will work.

You are viewing 1 out of 6 answers, click here to view all answers.