WordPress.org

Forums

YOP Poll
[resolved] How to edit results in archive (2 posts)

  1. shorespeak
    Member
    Posted 1 year ago #

    Is there a way to edit the results as they appear in the archive as seen here?

    Ideally we'd like to 'poll closed' information below the results and would like the ability to edit font size, results graph color etc.

    Many thanks.

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

  2. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi shorespeak,

    Edit the template and in Template After End Date section, delete these lines

    This poll is closed!
    Poll activity: <br>
    start_date %POLL-START-DATE%<br>
    end_date %POLL-END-DATE%<br>

    and at the bottom of that section, just below %POLL-VOTE-BUTTON%

    add

    <div class="yop-poll-poll-closed-%POLL-ID%">
    This poll is closed!
    Poll activity: <br>
    start_date %POLL-START-DATE%<br>
    end_date %POLL-END-DATE%<br>
    </div>

    Next, in the CSS section add

    .yop-poll-poll-closed-%POLL-ID% {
    font-size: 15px;
    }

    You can choose any font size.

    To change the results bar edit your poll and for each answer go to "More Options". Set "Use Template Result Bar:" to "No" and make the changes you want.

    Best wishes,

    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic