WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Single Page with No Sidebar (4 posts)

  1. rebop
    Member
    Posted 1 year ago #

    Hi folks,

    I searched and read numerous topics but have not solved this one yet.

    Using a child of Twenty Eleven and default set for page with right sidebar. There does not seem to be a one column choice. Just sidebar, default and showcase.

    I want all pages BUT one to have this sidebar. Whenever I edit the page, no choice of template makes any difference. It always has the sidebar.

    I created a new page template based on siderbar-page.php and now called Fullwidth. It appears in my choices, but the result still has the sidebar.

    <?php
    /**
     * Template Name: Fullwidth
     * Description: A Page Template that is a fullwidth page
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content -->
    		</div><!-- #primary -->
    
    <?php get_footer(); ?>

    The site is

    but no pages there have anything but sidebars. I leave that for a hidden test page.

    Have a solution for why I cannot get this to work?

    Thanks.

    ~Bob

  2. rebop
    Member
    Posted 1 year ago #

    Cannot seem to get the site link in my post.

    http://www.in4m8n.com

    ~Bob

  3. rebop
    Member
    Posted 1 year ago #

    Got it!

    It does work. Just not in preview. But once published it works as expected.

    ~Bob

  4. rebop
    Member
    Posted 1 year ago #

    May have spoken a **little** too soon :)

    It has lost the sidebar, but large margins top, left and right. Tried a number of fixes to no avail.

    Can anyone tell me how to get narrower margins and a wider center?

    Thanks.

    Only on this page: http://www.in4m8n.com/test

Topic Closed

This topic has been closed to new replies.

About this Topic