Site logo

Archived topic

How to add a Footer below an iFrame using a template

5 replies · Started by Steve Cronin on November 28, 2014

Viewing posts 1–6 of 6

Below I have included the full text of a template I have created.
When I use it for a new page, while it seems to work, I don't see any footer afterwards...

My thinking: since I specify the height and the footer methods are called, then the footer should appear below the iFrame... I'm kinda an html newbie so don't discount any obvious head-bangers on why this doesn't work..

<?php
/*
Template Name: MyTemplateName
*/
get_header(); ?>

<div id="primary" <?php generate_content_class();?>>
<main id="main" <?php generate_main_class(); ?> itemprop="mainContentOfPage" role="main">
<?php do_action('generate_before_main_content'); ?>

<!-- <?php get_template_part( 'content', 'page' ); ?> -->

<center><iframe src="http://www.example.com/example" frameborder="0" scrolling="no" width="1080" height="1080" name="ex1" id="ex1"</iframe></center>

<?php do_action('generate_after_main_content'); ?>
</main><!-- #main -->
</div><!-- #primary -->

<?php
do_action('generate_sidebars');
get_footer();

Interesting - do you have a link to a page so I can take a look?

Let me know :)

Hmm, it looks like your iframe HTML is missing a ">".

It should be:

<iframe src="http://www.wordaux.com/flyspray" frameborder="0" scrolling="no" width="1080" align="center" height="500" name="qa" id="qa"></iframe>

Let me know if that fixes it :)

yes that did it -- thank you again!!

You're welcome :)

This archived topic is closed to new replies.