WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Line Break Causing Answers to Be on Seperate Lines (3 posts)

  1. ENWest011
    Member
    Posted 1 year ago #

    Hello,
    I installed your plugin but am having a little trouble with how it displays. There is a line break before each answer, causing the answers to be on the next line (below the input toggle). You can see the problem here:
    http://www.ourcozycubbyhole.com/2013/06/28/still-have-the-fever/

    The HTML I am seeing that is causing this issue is:

    <li class="yop-poll-li-answer-2" style="width: 592px; float: left;"><input id="yop-poll-answer-9" type="radio" name="yop_poll_answer" value="9"></input><br></br>

    It is that final line break that I want to get rid of.

    Any thoughts? Thank you so much for your help!

    Best,
    Erika

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

  2. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Erika,

    From the main menu go to "Templates" and edit the template you used for your poll.

    In the CSS section replace

    #yop-poll-answers-%POLL-ID% ul li input {
    margin:0px;
    float:none;
    }

    with

    #yop-poll-answers-%POLL-ID% ul li input {
    margin-left: 5px;
    float:none;
    width:10px;
    }

    Also, in "Template Before Vote" section replace

    <li class="yop-poll-li-answer-%POLL-ID%">
    %POLL-ANSWER-CHECK-INPUT%
    %POLL-ANSWER-LABEL%
    <span class="yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
    %POLL-ANSWER-RESULT-BAR%

    with

    <li class="yop-poll-li-answer-%POLL-ID%">%POLL-ANSWER-CHECK-INPUT%%POLL-ANSWER-LABEL%<span class="yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>%POLL-ANSWER-RESULT-BAR%

    and save.

    Please let us know if you need more help.

    Regards,

    YOP Team

  3. ENWest011
    Member
    Posted 1 year ago #

    This worked perfectly! Thank you so much! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic