Title: WP-Polls iframe
Last modified: September 9, 2018

---

# WP-Polls iframe

 *  Resolved [kanryu](https://wordpress.org/support/users/kanryu/)
 * (@kanryu)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp-polls-iframe/)
 * Hi:
 * I have a problem with your mobile version. We are working with a third party 
   version, and WP-Polls doesnt work in their version.
 * So, we have one solution, and it is to convert the WP-Polls into a iFrame, but
   I cant do it.
 * This is their response:
 * Custom Widgets Through Iframes
    To provide customers with full control over their
   widgets and seamlessly include them in multiple channels, Marfeel offers a solution
   where custom-built widgets are embedded in iframes. This is the optimal way for
   a publisher’s custom widgets to coordinate and interact with Marfeel.
 * By embedding them in iframes, customers can insert any kind of widget in their
   Marfeel Progressive WebApp (PWA) and maintain full control over its behavior.
 * Using iframes also ensures that the publisher’s customized widgets appear in 
   their Marfeel-produced Google AMP pages without any extra or special support.
   AMP is generating more and more traffic for publishers by the month. Not integrating
   widgets with iframes means that a customer’s readers cannot access the widgets
   that add value to their content.
 * Development integration
    To insert a custom widget using an iframe, the customer
   needs to create and host a page that Marfeel uses to generate an iframe. This
   page must only contain the widget’s content without any other HTML (no headers,
   no logos, etc.).
 * It is recommended that the publisher uses iframes for their customized widgets
   on their desktop site. This way Marfeel simply detects the iframe, and inserts
   it in the same position in the customer’s Marfeelized mobile site and Marfeel-
   produced Google AMP pages.
 * Serving iframes for custom widgets will always work in a publisher’s Marfeel 
   PWA, however, to guarantee that they’re displayed in their AMP pages, they should
   be placed under an HTTPS URL.
 * Testing
    When integrating this iframe for the first time, Marfeel requires a 
   test HTML page for both the section mosaic and article details to set up an adapted
   crawler for the customer’s page.
 * As long as the customer maintains the same format as in these examples, any custom
   widget can be displayed in their Marfeel solution.
 * Code
    At the bottom of every iframe page, the following JavaScript snippet needs
   to be inserted to properly resize the widget dimensions according to the device
   accessing it:
 * Is there a way to do it with your plugin?
 * Thanks a lot.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp-polls-iframe/#post-10672281)
 * Sorry that is not possible as WP-Polls is never designed to work in an iframe.

Viewing 1 replies (of 1 total)

The topic ‘WP-Polls iframe’ is closed to new replies.

 * ![](https://ps.w.org/wp-polls/assets/icon.svg?rev=977996)
 * [WP-Polls](https://wordpress.org/plugins/wp-polls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-polls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-polls/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-polls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-polls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-polls/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/wp-polls-iframe/#post-10672281)
 * Status: resolved