Say "Hello!"

  • This field is for validation purposes and should be left unchanged.

Dynamic Sidebar


1
2
3
4
5
6
7
8
9
10
11
12
13
<?php //add in theme file
    if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
<?php endif; ?>

<?php //add in functions.php
    if (function_exists('register_sidebar') )
    register_sidebar(array(
        'before_widget' => '<div class="widget">',
        'after_widget' => '</div>',
        'before_title' => '<h2>',
        'after_title' => '</h2>',
    ));
?>

Back to Snippets Follow me on GitHub

Ashley Cameron logo
Blog