Widgetize your WordPress theme

If you want to use widgets on your WordPress theme, then these are the steps you should take:

1) Create a file functions.php in your theme directory. Add this to the file

if ( function_exists('register_sidebar') )
register_sidebar();
?>

2) Open your sidebar.php file and add this somewhere in the ul-list defintion

|| !dynamic_sidebar() ) : ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>