WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Text wraps to next line (5 posts)

  1. kimpauley
    Member
    Posted 11 months ago #

    Hello, I have the latest version of yop-poll and just installed it. Everything seems to be fine except that the text of the poll option isn't positioned next to the radio button but instead on the line after it. I thought it might be a strange wrapping issue and increased the size of the poll space, but that made no difference. For the most part, I kept all of the options to their default values.

    You can see it here http://54.200.51.48/stbm/still-sucks-to-be-me-even-in-paris-2/current-poll/

    Thanks for any help.

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

  2. YOP
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    Edit the template you used for your poll and in the CSS section look for this line #yop-poll-answers-%POLL-ID% ul li input { and just below it, replace margin:0px; with margin: 0 5px 0 0; and float:none; with float:left;

    In the end you should have

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

    Best wishes,

    YOP Team

  3. kimpauley
    Member
    Posted 11 months ago #

    Hm, that makes sense except that I don't see exactly that (unless I've gone blind or insane, which is possible). I had selected the Red v1 template that installed along with the plug in.

    This is what is in it---am I just missing it? Or are you talking about some other template?

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

      [ANSWER_CONTAINER]
      <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%

      [/ANSWER_CONTAINER]
      [OTHER_ANSWER_CONTAINER]
      <li class="yop-poll-li-answer-%POLL-ID%">
      %POLL-OTHER-ANSWER-CHECK-INPUT%
      %POLL-OTHER-ANSWER-LABEL%
      <span class="yop-poll-results-text-%POLL-ID%">%POLL-ANSWER-RESULT-LABEL%</span>
      %POLL-OTHER-ANSWER-TEXT-INPUT%
      %POLL-ANSWER-RESULT-BAR%

      [/OTHER_ANSWER_CONTAINER]

    </div>
    <div id="yop-poll-custom-%POLL-ID%">

      [CUSTOM_FIELD_CONTAINER]

    • %POLL-CUSTOM-FIELD-LABEL% %POLL-CUSTOM-FIELD-TEXT-INPUT%
    • [/CUSTOM_FIELD_CONTAINER]

    </div>
    [CAPTCHA_CONTAINER]
    <div id="yop-poll-captcha-%POLL-ID%">
    <div class="yop-poll-captcha-image-div" id="yop-poll-captcha-image-div-%POLL-ID%">
    %CAPTCHA-IMAGE%
    <div class="yop-poll-captcha-helpers-div" id="yop-poll-captcha-helpers-div-%POLL-ID%">%RELOAD-CAPTCHA-IMAGE% </div>
    <div class="yop_poll_clear"></div>
    </div>
    %CAPTCHA-LABEL%
    <div class="yop-poll-captcha-input-div" id="yop-poll-captcha-input-div-%POLL-ID%">%CAPTCHA-INPUT%</div>
    </div>
    [/CAPTCHA_CONTAINER]
    <div id="yop-poll-vote-%POLL-ID%" class="yop-poll-footer">
    <div>%POLL-VOTE-BUTTON%</div>
    <div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</div>
    <div>%POLL-TOTAL-ANSWERS%</div>
    <div>%POLL-TOTAL-VOTES%</div>
    </div>

  4. kimpauley
    Member
    Posted 11 months ago #

    Or did you mean I need to edit the css for the entire site?

  5. kimpauley
    Member
    Posted 11 months ago #

    Ha, nevermind, sorry for being an idiot. I found the appropriate CSS template file. Thanks for your help!

Reply

You must log in to post.

About this Plugin

About this Topic