Code needs wrapper/container to put footer back in, but where?

I got your problem. You are facing problem how and where to write the code for footer.

Below are some guide line it may help or give you some basic idea.

  1. First of you have to create footer.php template, if not created.
  2. Your tag should be closed in footer.php
  3. What ever code or div, links, copyright images etc you want to put u can code here.

  4. Example code of footer.php

<div id="footer" role="contentinfo">
    <div id="colophon">

        <div id="site-info">
            <a href="https://wordpress.stackexchange.com/questions/30082/<?php echo home_url("https://wordpress.stackexchange.com/" ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
                <?php bloginfo( 'name' ); ?>
            </a>
        </div><!-- #site-info -->

        <div id="site-generator">
            <?php do_action( 'twentyten_credits' ); ?>
            <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
        </div><!-- #site-generator -->

    </div><!-- #colophon -->
</div><!-- #footer -->

* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/

wp_footer();

?>

  1. Please see below code.

// Your footer code should be here.

your code or what ever your requirement

* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/

wp_footer();

?>

Note: If Still you are facing the problem then check below links

  1. http://codex.wordpress.org/Theme_Development
    See Template File Checklist for details

  2. http://codex.wordpress.org/Stepping_Into_Templates

  3. codex.wordpress.org/Templates