Support » Plugin: YOP Poll » Issue viewing yop poll content in foobox iframe

  • Resolved aduncan1987

    (@aduncan1987)


    Hi,

    On one of my company’s websites I have a yop poll which works fine, but when I access that website from our other website via a foobox iframe, each element in the poll is squashed to the left-hand side of the poll (See Picture for side-by-side comparison).

    I contacted foobox and having investigated they found that the poll is inserting width:0 to each independent list item when viewed in an iFrame but not when viewed in a browser. Do you know why this is happening and if this can be fixed?

    Many Thanks,
    Andy

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi Andy,

    Please send us a link to your poll so we may assist.

    Regards,

    YOP Team

    Thread Starter aduncan1987

    (@aduncan1987)

    Thanks for your reply. The issue is within the iframe when you click the “Browse our Research” link here. The original site with the working poll is here.

    Many thanks,
    Andy

    Thread Starter aduncan1987

    (@aduncan1987)

    Hi,

    Have you had a moment to look at this?

    Many thanks 🙂

    Plugin Author YOP

    (@yourownprogrammer)

    Hey Andy,

    Sorry it took so long to get back to you.

    Please edit the template you used for your poll and in the CSS section add

    #yop-poll-answers-%POLL-ID% ul li{
    
    width: initial !important;
    float: left;
    
    }

    Let us know if you need more help.

    Best wishes,

    YOP Team

    Thread Starter aduncan1987

    (@aduncan1987)

    Many thanks for the reply. Would this CSS section be in the edit poll screen? If so, I don’t have a CSS section.

    Thanks,
    Andy

    Plugin Author YOP

    (@yourownprogrammer)

    Hi Andy,

    You have to make these changes in the CSS section of the template you used.

    From the YOP Poll menu, go to Templates. From that list, drag you mouse over the template you assigned to your poll and click on Edit, then scroll down to the CSS section.

    Regards,

    YOP Team

    Thread Starter aduncan1987

    (@aduncan1987)

    Thanks for the clarification 🙂

    I’ve made the change but unfortunately, it makes smaller items in the list merge together onto one row, both on the main website and when viewed in the lightbox. On the website itself, on inspection it still shows each list item as having width:230px, but when I inspect it through the lightbox, I can see that each list item now has width:38px, rather than width:0px which is an improvement, but still doesn’t display the poll answers in a list like it should.

    Do you have any suggestions?

    Many thanks,
    Andy

    Plugin Author YOP

    (@yourownprogrammer)

    Hey Andy

    We no longer have access to your page to see what can be done.

    Can you email us at yop.help[at}gmail.com with instructions on how to access the page?

    Best Wishes,
    YOP Team

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Issue viewing yop poll content in foobox iframe’ is closed to new replies.