Creating widgets out of an area of space on your page is more simple then people realize.    Say for example you want to widgetize the footer, let’s do that right now.

1st we’re going to add some code to the functions.php to recognize that we have a widget in the wp-admin console options for widgets.

In your comicpress theme’s function.php file, find this line: (dependent on which theme)

if  ( function_exists('register_sidebar' ) )
register_sidebar( array('name'=>'Left Sidebar' ));
register_sidebar( array('name'=>'Right Sidebar' ));

And lets add one

register_sidebar( array('name'=>'FooterWidget'));

however I want to clean this code up so make it look like this:

if  ( function_exists('register_sidebar' ) ) {
register_sidebar( array('name'=>'Left Sidebar' ));
register_sidebar( array('name'=>'Right Sidebar' ));
register_sidebar( array('name'=>'FooterWidget' ));
}

What this says is “if you can register a sidebar, register these sidebar’s to be seen in the wp-admin/widgets menu and store the information of what’s in them in the database.

Next we’re going to edit the footer.php file, right under the <div id=”footer”> we’re going to make wordpress see the widget.

&lt;div id=&quot;footer&quot;&gt;
&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('FooterWidget') ) : ?&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;

What this says is if there’s no dynamic sidebar available and no sidebar in the database named FooterWidget then do whats inside the area between the code, else display the widgets that have been assigned to FooterWidget

That’s all there to it, the width of the area is already defined in the #footer CSS, the best use of this widget would be a text-box widget where you can place some sort of advertisement.  You can also do something like this for the header or even above the header for more advertisements instead of hard coding different ads all the time you just edit the widget information.

– Phil