Title: static sidebar
Last modified: August 21, 2016

---

# static sidebar

 *  [michelkopp](https://wordpress.org/support/users/michelkopp/)
 * (@michelkopp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/)
 * Hi guys
 * How can I get the sidebar static (not scrolling) at all time/on all sites/posts?
 * thx for your help!
    Michel

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

 *  [batharoy](https://wordpress.org/support/users/batharoy/)
 * (@batharoy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468422)
 * It would depend on how many items are in your sidebar on whether or not this 
   would work.
    Can you provide a link to your site?
 *  Thread Starter [michelkopp](https://wordpress.org/support/users/michelkopp/)
 * (@michelkopp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468425)
 * Hi
 * There are 4 widgets in it (menu, wp-calendar, text, rss from blog). Can’t provide
   a link, I’m working on it my local server (MAMP on Mac), sorry…
    Isn’t there 
   a code (like “position:fixed”) that I can insert anywhere?
 * That’s the sidebar.php:
 *     ```
       <?php
       /**
        * The Sidebar containing the main widget areas.
        *
        * @package Gridster
        */
       ?>
   
       <div id="container">
       <div id="sidebar">
       <h1 id="blogtitle"><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
       <p class="tagline"><?php bloginfo( 'description' ); ?></p>
   
       <div class="sidebarwidget">
       <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
       </div>
   
       <?php do_action( 'before_sidebar' ); ?>
       <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
   
       <?php get_search_form(); ?>
   
       <h3 class="sidetitle"><?php _e( 'Archives', 'gridster' ); ?></h1>
   
       <ul>
       <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
       </ul>
       <h3 class="sidetitle"><?php _e( 'Meta', 'gridster' ); ?></h1>
   
       <?php endif; // end sidebar widget area ?>
   
       </div><!-- End Sidebar -->
       ```
   
 *  Thread Starter [michelkopp](https://wordpress.org/support/users/michelkopp/)
 * (@michelkopp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468579)
 * any idea?
 *  [batharoy](https://wordpress.org/support/users/batharoy/)
 * (@batharoy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468580)
 * This might cause trouble if you have too much info in your sidebar as it wont
   show the bottom on smaller screens.
 *     ```
       #sidebar {
       position: fixed;
       }
       ```
   
 *  Thread Starter [michelkopp](https://wordpress.org/support/users/michelkopp/)
 * (@michelkopp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468583)
 * Ok, thanks, I’ll try it… Where do I put this code?
 *  [batharoy](https://wordpress.org/support/users/batharoy/)
 * (@batharoy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468591)
 * Either use a [child theme](http://codex.wordpress.org/Child_Themes) or use a 
   custom css plugin.

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

The topic ‘static sidebar’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/gridster-lite/1.0.7.1/screenshot.
   png)
 * Gridster-Lite
 * [Support Threads](https://wordpress.org/support/theme/gridster-lite/)
 * [Active Topics](https://wordpress.org/support/theme/gridster-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/gridster-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/gridster-lite/reviews/)

## Tags

 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 6 replies
 * 2 participants
 * Last reply from: [batharoy](https://wordpress.org/support/users/batharoy/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/static-sidebar-1/#post-4468591)
 * Status: not resolved