WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Fancybox Compatibility (3 posts)

  1. kaynenh
    Member
    Posted 9 months ago #

    Hey,

    If I embed the poll in a Fancybox modal, it loses its layout attributes until I click vote. After that, the poll looks correct whether I look at the results or the questions view. Is there a way to refresh the layout of the poll via javascript after page load or click?

    Thanks!

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

  2. YOP
    Member
    Plugin Author

    Posted 9 months ago #

    Hi kaynenh,

    Please provide a link to the page where you have the poll embedded.

    Regards,

    YOP Team

  3. kaynenh
    Member
    Posted 9 months ago #

    Hey!

    I meant to update this topic. I fixed the issue with just a little css. For some reason, the li elements inside the yop-poll-answers get reset to width: 0 inside the fancybox. Here's what I added to style.css to fix the issue:

    .yop-poll-answers > ul > li {width: 100% !important;}

    Thanks for following up!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags