Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- this code has to be plaaced in the function.php: -->
- if (function_exists('register_sidebar')) {
- register_sidebar(array(
- 'name' => 'Sidebar Widgets',
- 'id' => 'sidebar-widgets',
- 'description' => 'Widget Area',
- 'before_widget' => '<div>',
- 'after_widget' => '</div>',
- 'before_title' => '<h2>',
- 'after_title' => '</h2>'
- ));
- }
- <!-- this code has to pklaced in the location where you needs it (index.php etc.): -->
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Widgets') ) : ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement