WordPress.org

Forums

YOP Poll
[resolved] reload yop poll when browser resized? (2 posts)

  1. Julianwave
    Member
    Posted 1 year ago #

    Great plugin, really easy to use.

    I was wondering though, is there a quick and easy way to make the poll refresh if a user resizes their browser, so that the results widths are recalculated and it can be fully responsive? maybe a bit of javascript?

    No prob if its not possible.

    Thanks

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

  2. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Julianwave,

    We're happy you like the plugin!

    To make the poll refresh when you resize please edit the template you used on your poll and in the Javascript section add the function below:

    jQuery(window).resize(function() {
    yop_poll_back_to_vote('%POLL-ID%');
    });

    Regards,

    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags