Support » Fixing WordPress » Footer Background No Longer Entire Width of Website

  • While formating text in my homepage template to reflect current exhibition somehow the semi-transparent background for the footer was altered so instead of extending the entire width of the page it is centered and I can’t find what changed. I’ve tried deleting the code I changed but I must have inadvertently changed something that I keep overlooking.

    <a href=”
    Home Template Code

    Template Name: Home Template
    get_header(); ?>
    <div class="promo">
        <div class="gallery-holder">
            <div class="heading" style="margin-left:-15px">
    			<!-- Premiere Text -->
            		<strong>Nature Through the Looking Glass: A Series of Paintings and Terrarium Art by Roy Owsley:</strong>
    			 <div class="gallery-holder">
    			<div class="heading" style="margin-center:-15px">
    			<!-- Premiere Text -->
    			November 2, 2012 to December 23th, 2012
                <a href="" class="link">View Gallery Archive</a>
            <?php query_posts('cat='.GalleryCategoryID); ?>
            <?php if (have_posts()) : ?>
            <div class="gallery">
                <a href="#" class="prev">prev</a>
                <div class="frame">
                    	<?php while (have_posts()) : the_post(); ?>
    						$link = get_post_meta(get_the_ID(), 'url', true);
    						$showLink = (empty($link)) ? false : true;
    						$thumb_caption = "";
    						if (has_post_thumbnail()) {
    							$thumb_id = get_post_thumbnail_id(get_the_ID());
    							$thumb_image = get_posts(array('p' => $thumb_id, 'post_type' => 'attachment'));
    							$thumb_caption = $thumb_image[0]->post_excerpt;
                        	<?php if(has_post_thumbnail()): ?>
                        			<span class="caption"><?php echo $thumb_caption; ?></span>
                        			<?php if ($showLink): ?><a href="<?php echo $link; ?>"><?php endif; ?>
                        			<?php the_post_thumbnail('gallery-post-thumbnail'); ?>
                        			<?php if ($showLink): ?></a><?php endif; ?>
                        	<?php endif; ?>
                        <?php endwhile; ?>
                <a href="#" class="next">next</a>
            <?php endif; wp_reset_query(); ?>
        <?php if(is_active_sidebar('main-image')): dynamic_sidebar('main-image'); endif; ?>
    <?php get_footer(); ?>

    Footer Code

    <div class="container">
    				<?php if(is_active_sidebar('footer-info')): ?>
                    <div id="main">
                    	<?php dynamic_sidebar('footer-info'); ?>
                    <?php endif; ?>
                    <div id="footer">
                        <a href="<?php bloginfo('url'); ?>" class="link">Marleau Gallery</a>
                            <li><a href=""></a></li>
                            <li><address>99 Partition St. Saugerties, NY 12477 </address></li>
                            <li> Thurs. Fri. Sat. 11-9  Sun. 10-7 </li>
                        <span class="copy">© All Rights Reserved.</span>
            <?php wp_footer(); ?>
  • The topic ‘Footer Background No Longer Entire Width of Website’ is closed to new replies.