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 >
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.
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.”
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!
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