• I have been playing around with a page on a site (http://www.haylockpittman.co.uk/new-refurb-publish/) but the previous designer has made the bottom half the template. This means that a widget calls up the text and the mini sidebar.
    At the bottom though I have been trying to remove the clients and recents posts section and make the rest of the text etc over the full width. I can lose the sidebar part easy enough but no matter what I do I cannot make the text over the full width.
    Any help would be really gratefully received. Below is the template php code

    <?php
    /*
    Template Name: New Refurb
    */
    ?>
    <?php
    /**
     * Template Name: Front Page Template
     * Description: A Page Template that showcases Sticky Posts, Asides, and Blog Posts
     *
     * The showcase template in Twenty Eleven consists of a featured posts section using sticky posts,
     * another recent posts area (with the latest post shown in full and the rest as a list)
     * and a left sidebar holding aside posts.
     *
     * We are creating two queries to fetch the proper posts and a custom widget for the sidebar.
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    
    // Enqueue showcase script for the slider
    wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '2011-04-28' );
    
    get_header(); ?>
    
    		<div id="primary" class="showcase">
    			<div id="content" role="main">
    
    				<?php the_post(); ?>
    
    				<?php
    					/**
    					 * We are using a heading by rendering the_content
    					 * If we have content for this page, let's display it.
    					 */
    					if ( '' != get_the_content() )
    						get_template_part( 'content', 'intro' );
    				?>
    
    				<?php
    					/**
    					 * Begin the featured posts section.
    					 *
    					 * See if we have any sticky posts and use them to create our featured posts.
    					 * We limit the featured posts at ten.
    					 */
    					$sticky = get_option( 'sticky_posts' );
    
    					// Proceed only if sticky posts exist.
    					if ( ! empty( $sticky ) ) :
    
    					$featured_args = array(
    						'post__in' => $sticky,
    						'post_status' => 'publish',
    						'posts_per_page' => 10,
    						'no_found_rows' => true,
    					);
    
    					// The Featured Posts query.
    					$featured = new WP_Query( $featured_args );
    
    					// Proceed only if published posts exist
    					if ( $featured->have_posts() ) :
    
    					/**
    					 * We will need to count featured posts starting from zero
    					 * to create the slider navigation.
    					 */
    					$counter_slider = 0;
    
    					?>
    
    				<div class="featured-posts">
    					<h1 class="showcase-heading"><?php _e( 'Featured Post', 'twentyeleven' ); ?></h1>
    
    				<?php endif; // End check for published posts. ?>
    				<?php endif; // End check for sticky posts. ?>
    				<div id="about">
    					 <?php dynamic_sidebar( 'New refurb' ); ?>
    					 </div>
    					 <div id="side">
    				 <?php dynamic_sidebar( 'Showcase Sidebar' ); ?></div>
    
    			</div><!-- #content -->
    		</div><!-- #primary -->
    
    <?php get_footer(); ?>

The topic ‘Problem Altering Width Of Template’ is closed to new replies.