Title: Remove left sidebar for Posts
Last modified: August 20, 2016

---

# Remove left sidebar for Posts

 *  [WRevolves](https://wordpress.org/support/users/wrevolves/)
 * (@wrevolves)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/)
 * I want the Posts on my website to only have the right sidebar shown and post 
   content to fill the rest of the space. How do I do this?
 * Thanks!
 * [http://www.wrestlingrevolves.com](http://www.wrestlingrevolves.com)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Mukesh Panchal](https://wordpress.org/support/users/mukesh27/)
 * (@mukesh27)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016342)
 * in the widget remove widget in sidebar-secondary area u get empty right side 
   bar
 *  Thread Starter [WRevolves](https://wordpress.org/support/users/wrevolves/)
 * (@wrevolves)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016495)
 * That removes it from homepage too… as you can see I only want it removed on posts.
   And that doesn’t make the content fill up the empty space. So, hey, anybody else?
 *  [bythegram](https://wordpress.org/support/users/bythegram/)
 * (@bythegram)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016497)
 * You’d want to make a Child Theme so that you can make changes to the sidebar.
   php file.
 * [This might help with that](http://codex.wordpress.org/Child_Themes)
 * After you make a Child Theme you should be able to copy the “sidebar.php” file
   from the parent and change it to this
 *     ```
       <?php global $theme; ?>
       <?php if ( !is_single() ) : ?>
       <div id="sidebar-primary">
   
           <?php
               if(!dynamic_sidebar('sidebar_primary')) {
                   /**
                   * The primary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets
                   */
                   $theme->hook('sidebar_primary');
               }
               $theme->hook("sidebar_primary_after");
           ?>
   
       </div><!-- #sidebar-primary -->
       <?php endif; ?>
   
       <div id="sidebar-secondary">
   
           <?php
               if(!dynamic_sidebar('sidebar_secondary')) {
                   /**
                   * The secondary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets
                   */
                   $theme->hook('sidebar_secondary');
               }
           ?>
   
       </div><!-- #sidebar-secondary -->
       ```
   
 *  Thread Starter [WRevolves](https://wordpress.org/support/users/wrevolves/)
 * (@wrevolves)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016523)
 * That worked to remove the left sidebar. Thanks! How can I get the content for
   posts to start where sidebar was now? Too much empty space. THANKS!
 *  Thread Starter [WRevolves](https://wordpress.org/support/users/wrevolves/)
 * (@wrevolves)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016524)
 * Changing it on Style.css does it on homepage and pages too. Don’t want that.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016535)
 * use the page specific css class which is output by `body_class()` [http://codex.wordpress.org/Function_Reference/body_class](http://codex.wordpress.org/Function_Reference/body_class);
 * example:
 * `.single #content { width: 630px; margin-left: 0; }`
 *  Thread Starter [WRevolves](https://wordpress.org/support/users/wrevolves/)
 * (@wrevolves)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016561)
 * Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove left sidebar for Posts’ is closed to new replies.

 * 7 replies
 * 4 participants
 * Last reply from: [WRevolves](https://wordpress.org/support/users/wrevolves/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/remove-left-sidebar-for-posts/#post-3016561)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
