Not sure what rule you’ve been using, but I just tried the following and it worked as expected. Ugly, but worked. 🙂
div.reaction_buttons li.voted {
background-color: blueviolet;
}
I am using the same css but both buttons change color instead of the button that was clicked.
To see it in action visit canigivemydog.com and visit any page on a mobile phone…towards the bottom of the page you will see the buttons. (won’t be view-able on a desktop)
Oh, you are only allowing to vote for one option. Yeah, that doesn’t seem possible yet…
Please try the development version found here: https://wordpress.org/plugins/reaction-buttons/developers/
And match for the class ‘rb_chosen’ instead of ‘voted’.
I’m not sure what you mean by “only allowing to vote for one option”. I thought a user can only choose 1 button by clicking on it.
Depends on the settings, default is IIRC that you can click every button, but only once. Totally depends on how you use them, in your setting it’s exclusive, in my defaults an article might be more than only one thing.
Did the developer build help you?
Do I need to uninstall the regular plugin before installing the developers version?
Don’t think so, should just install over the old one.
I installed it but now the buttons do not change color at all.
Here is what I have:
div.reaction_buttons li.rb_chosen {
background: #DF0101;
border: 1.7px solid black;
}
I tried background-color: #DF0101; as well.
but the thing is.. WP is still showing that I’m using 2.1.1 even though I uploaded the developers version.
I didn’t increase the version number. But from my point of view it still looks like you are using the old version. I’ve changed the version of the dev version to 2.1.2 now: https://downloads.wordpress.org/plugin/reaction-buttons.zip
The CSS looks good though.
I deactivated the plugin and changed the folder name. Then I installed 2.1.2 and now the CSS is working exactly the way I want. Thank you very much!
___
Just a reminder… I love your plugin but please please make the reporting better. Users get to see the voting percentage on each button (after they vote) but the webmaster has no place to view these very useful percentages! Would be wonderful for content analysis and quality control!
Great.
Yeah, I don’t think I’m gonna have time for that. If anybody wants to code that, I’ll will happily accept patches, but I don’t see myself implementing that in any near future. This isn’t a marketing tool (for me!), it is simply to engage the readers a bit and get at least some feedback, mostly as a reason to continue blogging.