Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sidebar @
- // http://www.quickonlinetips.com/archives/2007/11/how-to-widget-enable-wordpress-themes-in-3-easy-steps/
- if (function_exists('register_sidebar')) {
- register_sidebar(array(
- 'name' => 'News Sidebar',
- 'id' => 'news-sidebar',
- // 'description' => 'Sidebar ',
- 'before_widget' => '<div id="%1$s" class="widget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h4>',
- 'after_title' => '</h4>'
- ));
- }
- /* Code for theme file
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('news-sidebar') ) : ?>
- <?php endif; ?>
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement