• I have a custom page template that strips out everything except content, which I’m using to make an iFrame fill the whole screen. However, I need a way of navigating back to the home page. Ideally, I would like users to be able to click a floating link.

    The link can be the same across every page that uses the template, as they’ll all be going back to the same main page.

    This seems like it should be incredibly easy, but I’ve no idea how it’s done.

    Here’s the template I’m using:

    <?php
    /**
    	Template Name: Just iFrame
    */
    ?>
    <html>
    <head>
       <title><?php wp_title( '|', true, 'right' ); bloginfo('url'); ?></title>
       <style>
           html,body,div, div.floating-menu, iframe {height:100%;}
           p {position:relative;overflow:hidden;}
           iframe {border:none;width:100%;}
           body {margin:0;padding:0;}
       </style>
    </head>
    
    <body>
          <?php while (have_posts()) : the_post(); ?>
          <?php the_content(); endwhile; ?>
    </body>
    </html>

    I’d be so grateful for any help!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Solve a puzzle: Floating button/menu over fullscreen iFrame?’ is closed to new replies.