Revision: 35593
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 10, 2010 19:27 by klw
Initial Code
In functions.php: // Add widget-ready sidebars if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Footer 1', 'id' => 'footer1', 'description' => 'These are widgets for the footer.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h6>', 'after_title' => '</h6>' )); } if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Footer 2', 'id' => 'footer2', 'description' => 'These are widgets for the footer.', 'before_title' => '<h6>', 'after_title' => '</h6>' )); } if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Footer 3', 'id' => 'footer3', 'description' => 'These are widgets for the footer.', 'before_title' => '<h6>', 'after_title' => '</h6>' )); } In sidebar.php: <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 1') ) : ?> <p>This area is widgetised! To make use of this area, put some widgets in the 'Main Sidebar' section.</p> <?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 2') ) : ?> <p>This area is widgetised! To make use of this area, put some widgets in the 'Main Sidebar' section.</p> <?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 3') ) : ?> <p>This area is widgetised! To make use of this area, put some widgets in the 'Main Sidebar' section.</p> <?php endif; ?>
Initial URL
Initial Description
Initial Title
WP: Insert Multiple Sidebars
Initial Tags
wordpress
Initial Language
PHP