• Resolved Taktik Communication

    (@nucleusgestion)


    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="https://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="https://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.

    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)
Viewing 1 replies (of 1 total)
  • The topic ‘problem with iFrame and wordpress’ is closed to new replies.