WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Change "You Have Left No Votes!" text (7 posts)

  1. vince1976
    Member
    Posted 11 months ago #

    I Have got the poll set so a registered user can only vote once per poll. Everything works a treat and I'm very impressed by this module, However I need to change some of the default text.

    Where is the text "You have left no votes!" stored (which gets displayed when they have already voted and try to vote again) so that I can change the text to "You have already voted on this poll."

    Regards,

    Vince

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Vince,

    Please edit inc/yop-poll-model.php and on line 2997 you have

    $this->error = __( 'You have left no votes!', 'yop_poll' );

    Replace it with

    $this->error = __( 'You have already voted on this poll.', 'yop_poll' );

    Best wishes,

    YOP Team

  3. male_overhaul
    Member
    Posted 10 months ago #

    may I have more specific info on where I change this info please? I think this needs to be changed in the next update. the spelling is incorrect. It should say "You have run out of votes!"

  4. male_overhaul
    Member
    Posted 10 months ago #

    How do we change the colour of this error alert too please?

  5. male_overhaul
    Member
    Posted 10 months ago #

    I found where to edit the You have left no votes error. You have to go to the plugin from the plugin page list and then to the inc/yop-poll-model.php

  6. male_overhaul
    Member
    Posted 10 months ago #

    Also how do we remove the heading which is the name of the poll? . the heading of the widget and the heading of the poll means two heading for the poll. I only want the heading on the widget. help?

  7. YOP
    Member
    Plugin Author

    Posted 10 months ago #

    Hi male_overhaul,

    To change the colour, in the CSS section look for

    #yop-poll-container-error-%POLL-ID% {
    font-size:12px;
    font-style:italic;
    color:red;
    text-transform:lowercase;
    }

    Here you can replace the default colour (red).

    To remove the heading edit the template you used and in "Template Before Vote" and "Template After Vote" delete

    <div id="yop-poll-name-%POLL-ID%" class="yop-poll-name">%POLL-NAME%</div>

    Best wishes,

    YOP Team

Reply

You must log in to post.

About this Plugin

About this Topic