/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
----------------------------------- Functions.php ----------------------------------- if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'sidebar1', 'description' => 'This shows in admin widget header.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h4>', 'after_title' => '</h4>', )); register_sidebar(array('name'=>'sidebar2', 'description' => 'This shows in admin widget header.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h4>', 'after_title' => '</h4>', )); ----------------------------------------- Sidebar.php ----------------------------------------- <?php /* Widgetized sidebar, if you have the plugin installed. */ || !dynamic_sidebar('sidebar1') ) : ?> <?php endif; ?> ----------------------------------------- Sidebar2.php ----------------------------------------- <?php /* Widgetized sidebar, if you have the plugin installed. */ || !dynamic_sidebar('sidebar2') ) : ?> <?php endif; ?>