Title: problem with iFrame and wordpress
Last modified: August 20, 2016

---

# problem with iFrame and wordpress

 *  Resolved [Taktik Communication](https://wordpress.org/support/users/nucleusgestion/)
 * (@nucleusgestion)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/problem-with-iframe-and-wordpress/)
 * Hi guys,
 * I’m using a plug-in called “maintenance mode” which basically displays a maintenance
   page when activated.
 * There’s a main frame, where I’d like to display, with all the available space,
   an iFrame.
 * So at first, I tried this :
 *     ```
       <iframe src="http://taktikcommunication.com/construction/index.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto">
         <p>Votre fureteur ne supporte pas les iframes. Your browser does not support iframes.</p>
       </iframe>
       ```
   
 * But it only showed a very small window, with scrolling bars, and it sucked.
 * So I tried to “alter” the CSS a little by putting this :
 *     ```
       <style type="text/css">
       html {overflow: auto;}
       html, body, div, iframe {margin: 0px; padding: 0px; border: none;}
       iframe {display: block; height: 100%; width: 100%; overflow-y: auto; overflow-x: hidden;}
       </style>
   
       <iframe src="http://taktikcommunication.com/construction/index.html" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto">
         <p>Votre fureteur ne supporte pas les iframes. Your browser does not support iframes.</p>
       </iframe>
       ```
   
 * And it still don’t work !
 * You can see the result at [patricemasson.ca](http://patricemasson.ca/).
 * So could you please help me fix this ?
 * Or, if now, do you have an alternate solution for what I’m trying to do ?
 * If I can get this to work, this plugin will do all I need :
    When not logged 
   in, you see the maintenance page. When logged in, you see the site. Awesome plugin
   while you’re developping a wordpress site !
 * THANK YOU !!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Taktik Communication](https://wordpress.org/support/users/nucleusgestion/)
 * (@nucleusgestion)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/problem-with-iframe-and-wordpress/#post-2320855)
 * Ah… I worked around it
 * I edited the PHP file in the plugin folder
 * nailed it 😉
 * Cheers !

Viewing 1 replies (of 1 total)

The topic ‘problem with iFrame and wordpress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Taktik Communication](https://wordpress.org/support/users/nucleusgestion/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/problem-with-iframe-and-wordpress/#post-2320855)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
