Widgets are indeed very useful, and can help you to easily achieve a lot of tasks on your WordPress blog. Now, you know how to create a widgetized sidebar for any theme, but what about more than just a widget-ready sidebar?
In this recipe, you'll learn how to create as many widgetized zones as you want.
In this recipe, I assume that you have read and understood the basics about creating a widget ready zone, as described in the previous recipe. To complete the following recipe, all that you need is a theme of your choice.
Let's start by creating a widget-ready zone in the theme sidebar. Open the
sidebar.php
file from the theme that you have picked-up. If the theme already has a widgetized sidebar, replace the existing code by the following one, or add it if the sidebar isn't widgetized at all.<ul id="sidelist"> <?php /* Widgetized sidebar */ if ( !function_exists('dynamic_sidebar') ||!dynamic_sidebar...