Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Forgive me if I have missed something in the instructions or UI, but I don't seem to be able to find a way to make my "thumbs up" icon change after voting. It would be nice if there were a CSS class that changed or appeared after voting, and I could attach a different icon to it.
I see in the ~/templates/thumbs-up-down/thumbs.png file that there are icons of different shades, so I assume this contingency was provided for, but I find no way to use both of them.
Thank you for your help.
Comment | File | Size | Author |
---|---|---|---|
#2 | thumb-up.patch | 5.69 KB | epifab |
#1 | rate-thumbs-up.patch | 2.41 KB | epifab |
Comments
Comment #1
epifab CreditAttribution: epifab commentedI rolled a patch to improve this.
The patch also slightly changes the messages shown for the thumbs up widget and remove the link if the option 'delete_vote_on_second_click' is disabled and the user has already voted.
Hope this will help
Comment #2
epifab CreditAttribution: epifab commentedSorry there was a problem with the patch #1. Rerolled.
Comment #3
donutdan4114 CreditAttribution: donutdan4114 commentedDoesn't work for me.. Appears that those classes need to be added into
rate_preprocess_rate_template_yesno()
andrate_preprocess_rate_template_thumbs_up()
functions also.