Skip to main content

Ivan Teoh

Something personal yet public

94-functions.php

(Source)

if ( function_exists('register_sidebar') )
{
    // Primary Sidebar
    register_sidebar(array(
        'name' => 'Primary Sidebar',
        'id' => 'primary-sidebar',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '',
        'after_title' => '',
    ));

    // Secondary Sidebar
    register_sidebar(array(
        'name' => 'Secondary Sidebar',
        'id' => 'secondary-sidebar',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '',
        'after_title' => '',
    ));
}