/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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: <p>This area is widgetised! To make use of this area, put some widgets in the 'Main Sidebar' section.</p> <?php endif; ?> <p>This area is widgetised! To make use of this area, put some widgets in the 'Main Sidebar' section.</p> <?php endif; ?> <p>This area is widgetised! To make use of this area, put some widgets in the 'Main Sidebar' section.</p> <?php endif; ?>
Comments
