In WP theme building, if a sidebar is not active, can I turn it on? Also, if the sidebar is active, and doesn’t contain any widgets, can I add some?
I’m a theme and plugin developer, but this is something I haven’t learned to do yet.
In WP theme building, if a sidebar is not active, can I turn it on? Also, if the sidebar is active, and doesn’t contain any widgets, can I add some?
I’m a theme and plugin developer, but this is something I haven’t learned to do yet.
You must be logged in to post a comment.
@Volomike,
When you register a sidebar in your themes functions it will be active in the dashboard. If no widgets are added to your sidebars WordPress will add the default widgets. You can prevent WordPress from adding the default widgets by unregistering them:
You can also preset your own widgets.
Thematic is actually a great example of all the things that can be done with widgets. Take a look at widgets.php and widgets-extensions.php