Support » Plugin: WP-PostRatings » To get blank stars when voting

  • Hi,
    Is there a way to get blank stars when voting even when there is are previous ratings?

    $(".post-ratings").attr({
            onmouseout: "ratings_off(0, 0, 0)"
        });

    I tried changing the img attribute “onmouseout” as above, but it only works after you hover on stars.
    Could you Please help me on this?
    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Cat

    (@stitchyrocks)

    You also need to change the star images themselves because the code also plugs in the appropriate star images (on, off, half, etc.) depending on the current rating. Something like this:

    $('.post-ratings > img').attr('src', 'rating_off.gif');

    You’ll obviously need to change the ‘rating_off.gif’ to include the correct path to the image, but this should work.

Viewing 1 replies (of 1 total)
  • The topic ‘To get blank stars when voting’ is closed to new replies.