Support » Themes and Templates » custom sidebar for 2010 child-theme

  • susafri


    Hi all,
    I have made a child-theme for 2010 that is looking pretty good, but now I cannot figure out how to register a custom sidebar in functions. Somehow its different from the way I used it in wp2.9.2.

    I have made a custom page template and named it page-about.php (for the about section). the devsite is
    Within that I have put <?php include (TEMPLATEPATH . 'sidebar-about.php'); ?>

    then I know I have to register the sidebar in the functions.php ( in my child theme)
    I have tried this

    register_sidebar( array(
    		'name' => __( 'about sidebar'),
    		'id' => 'sidebar-about',
    		'description' => __( 'sidebar for about pages' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );

    I can’t get it to work. Can anyone help?


  • The topic ‘custom sidebar for 2010 child-theme’ is closed to new replies.