WordPress.org

Forums

Twenty Fourteen
Remove the left sidebar from twenty fourteen theme (9 posts)

  1. hridaya
    Member
    Posted 1 year ago #

    I am using the twenty fourteen theme and want to remove the left sidebar completely on full content page and i removed get_sidebar(); form the page and off course removes the content but there is blank space remains at that place how i can extend the white part full width >

    please can you help me

    Thank you
    hridaya

  2. arask2
    Member
    Posted 1 year ago #

    Somebody already solved a similar problem, I believe.

    http://wordpress.org/support/topic/center-site-content-to-full-width?replies=3

    Hope that helps.

    Cheers,
    K

  3. Robsney
    Member
    Posted 1 year ago #

    After looking for hours, I finally found this step by step video that helped me removing the sidebar.

    http://www.youtube.com/watch?v=YGt6eavPFSY

  4. Menno1987
    Member
    Posted 1 year ago #

    Just download the Twenty Fourteen Extended plug-in. There you will get the option under Appearence ==> Customisation, to remove the left sidebar aswell as a lot of other option. Like center the website etc.

  5. mike1yogi
    Member
    Posted 1 year ago #

    Yes, the Fourteen Extended plugin is the trick..here's a short video on YT:

    http://www.youtube.com/watch?v=vMzdv8r_qAc

  6. nathan_buchanan
    Member
    Posted 1 year ago #

    This sidebar thing is a bit of a mistake by the dev team I think. I understand that the Twenty Fourteen Extended Plug-in "fixes" the problem but for those of us who want to use Twenty Fourteen to develop Child Themes its not a good option. You should never have to use a plugin to add or remove page elements in a theme. It should be able to be easily accomplished in the HTML and CSS.

    Let it be known to the WP Dev team that a plugin is not a good solution to this issue. This should have been as easy as "If there are no widgets in the sidebar, the sidebar does not appear."

  7. danbon
    Member
    Posted 11 months ago #

    Does anyone know what happened to the Fourteen Extended plugin? I can't find it when I try to add the new plugin. Is there a new version of it? It's for timdewittactor.com. Thanks!

  8. Tche111
    Member
    Posted 11 months ago #

    To do it without a plugin:
    1. Create a child theme
    2. Create a new text file
    3. Copy-paste the following code in this file:

    <?php
    /**
    Template Name: Sidebar à droite (seule)
     * The template for displaying all pages
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages and that
     * other 'pages' on your WordPress site will use a different template.
     *
     * @package WordPress
     * @subpackage Twenty_Fourteen
     * @since Twenty Fourteen 1.0
     */
    
    get_header(); ?>
    
    <div id="main-content" class="main-content">
    
    <?php
    	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    		// Include the featured content template.
    		get_template_part( 'featured-content' );
    	}
    ?>
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    
    			<?php
    				// Start the Loop.
    				while ( have_posts() ) : the_post();
    
    					// Include the page content template.
    					get_template_part( 'content', 'page' );
    
    					// If comments are open or we have at least one comment, load up the comment template.
    					if ( comments_open() || get_comments_number() ) {
    						comments_template();
    					}
    				endwhile;
    			?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    	<?php get_sidebar( 'content' ); ?>
    </div><!-- #main-content -->
    
    <?php
    
    get_footer();

    4. Save the file as template-page2.php in your child-theme folder.
    5. Go in your page and select the new template...
    I hope it will help.
    T'Cheers

  9. xroox
    Member
    Posted 7 months ago #

    +1 Nathan – Good call!

    This is making me want to look for another theme.

    How many others have abandoned twenty fourteen because of this oversight? We'll never know. :)

    Update?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.