• Resolved jasonloeve

    (@jasonloeve)


    good day

    i am designing a child theme using twenty ten.
    i would like to know how do i get the footer to span the full width of the page?

    i have been playing with the css but cant seem to get this right.

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • lockettpots

    (@lockettpots)

    You will have to edit your footer.php file. Move the whole of your footer div to just below the end of your wrapper div so that it looks something like this

    </div><!-- #wrapper -->
    	<div id="footer" role="contentinfo">
    		<div id="colophon">
    
    <?php
    	/* A sidebar in the footer? Yep. You can can customize
    	 * your footer with four columns of widgets.
    	 */
    	get_sidebar( 'footer' );
    ?>
    
    			<div id="site-info">
    				<a href="<?php echo home_url( '/' ); ?>" 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( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
    			</div><!-- #site-generator -->
    
    		</div><!-- #colophon -->
    	</div><!-- #footer -->

    Then at the bottom of your style.css file add

    #footer, #colophon {
       width: 100%;
    }
    Thread Starter jasonloeve

    (@jasonloeve)

    thank you so very much. it worked

    is this what its suppose to look like? or did I miss something? Its not working for me.

    [code moderated per forum rules - please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘footer width’ is closed to new replies.