• Is there a way to change the Vote! button for a poll to something else?



      Loading editor
    • What do you mean by "change"?

        Loading editor
    • My fault for being lazy and not explaining properly

      Basically, I am trying to change the text inside the Vote button, like instead of "Vote!", make it say "Submit".

        Loading editor
    • It is possible but would require custom JS to do it. Unless you think it is really critical, I would suggest just leaving it as is.

        Loading editor
    • Theoretically, wouldn't it be something like this?:

      document.getElementById("axPollSubmitAB2F781BC0F65BF0F55B9EFCF78BB368").value = "Submit Vote";
        Loading editor
    • Yes, if you want to change it for only that poll. Otherwise, you could use:

      (function () {
      "use strict";
      var buttons = document.querySelectorAll(".ajax-poll input[name=\"wpVote\"]");
      var num_buttons = buttons.length;
      for (var i = 0; i < num_buttons; i++) {
          buttons[i].value = "Submit Vote";
        Loading editor
    • Thanks for the help!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.