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)

<br />
if  ( function_exists('register_sidebar' ) )<br />
register_sidebar( array('name'=&gt;'Left Sidebar' ));<br />
register_sidebar( array('name'=&gt;'Right Sidebar' ));<br />

And lets add one

<br />
register_sidebar( array('name'=&gt;'FooterWidget'));<br />

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

<br />
if  ( function_exists('register_sidebar' ) ) {<br />
register_sidebar( array('name'=&gt;'Left Sidebar' ));<br />
register_sidebar( array('name'=&gt;'Right Sidebar' ));<br />
register_sidebar( array('name'=&gt;'FooterWidget' ));<br />
}<br />

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.

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

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