• Hi!
    I want to hide the vote count until one has voted. I’ve seen (as you already answered to others) that doing that via php is basically rewriting a lot of the plugin.
    So I’m trying to add a css class to the container element of the buttons just after someone votes (or at page load if localstorage exists) so that it’ll be possible to hide/show the results via css.
    Do you have some hints on how to do it?

    Btw, nice and lightweight plugin!

Viewing 1 replies (of 1 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    it’s possible but you need to rewrite some CSS and JS. I can’t code it for you but the idea would be to check with JS if the user has voted (like it already does) and then add/remove CSS classes to show/hide the counter.

    It might be you need to edit the PHP output to wrap the counter in a span or some other element, so it can be easily hidden/shown.

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Add ‘already voted’ class to container’ is closed to new replies.