I've created a custom sidebar with this code in my theme's functions.php:

        'name' => __('Article - Below Content'),
        'id' => 'zg-article-footer',
        'description' => 'Use this sidebar to place widgets that will appear directly underneath the Article'

When I navigate to Appearance > Widgets in my Admin, this sidebar is always the first one on the top of my list of sidebars, and it's always "open" (that is, you can see the description and the list of widgets attached to it). None of my other sidebars are open, and WP Admin doesn't seem to remember my last-opened sidebar.

Is there an argument I should use when registering the sidebar that will tell it to default to closed? Or is there an option somewhere else entirely?


This is default behavior. I believe that sidebars are listed by ID in Dashboard -> Appearance -> Widgets, and that the sidebar with ID 0 is always open in the default view.

  • Interesting. But are you then supposed to use numeric IDs for sidebars? I would have thought that could be a conflict risk... my id is a unique identifier that should not collide with any others. Is there a better alternative? – Tom Auger May 11 '11 at 19:36
  • The issue isn't with your sidebar's ID, per se, but rather that WordPress always displays the first sidebar as open, and all other sidebars as closed. – Chip Bennett May 11 '11 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.