Hello @quicoto ,
Thanks for your prompt response always and
blessing us with this great plugin.
back then when the vote up and vote down button were wrapped with a span tag as
seen below:
<span class="thumbs-rating-up thumbs-rating-voted" onclick="thumbs_rating_vote(78, 1);" data-text="Vote Up +">2</span>
it was easy to hide. But after updating recently, i found out that the HTML structure has changed and i have been struggling with hiding the text again.
I wish to make some request:
1. Can you kindly wrap the buttons text in a span tag so that it can be easily hidden with CSS, like below:
<button class="thumbs-rating-up thumbs-rating-voted" onclick="thumbs_rating_vote(389, 1);"><span>Vote Up +</span>1</button>
And release an update.
I can easily modify the plugin files directly and bump up the version number as suggested; But what if a critical update is released for the plugin? It means i will miss it and other relevant subsequent updates.
2. kindly provide help with overriding the “thumbs_rating_getlink” function.
Though not good with PHP, i did some research and learnt that
if ( ! function_exists( 'thumbs_rating_getlink' ) ):
function thumbs_rating_getlink($post_ID = '', $type_of_vote = '', $wrapper = true)
{
}
endif;
is a pluggable and that i could override it by doing the following:
function thumbs_rating_getlink($post_ID = '', $type_of_vote = '', $wrapper = true)
{
}
I have tried it and other ways of overriding a function but i keep getting errors.
The fault could be from my side because of my deficiency in PHP, i will highly appreciate your help.
Thanks @quicoto in advance.