custom sidebar for 2010 child-theme
-
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 https://www.sanneart.com/draper/
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 thisregister_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?
thanks
- The topic ‘custom sidebar for 2010 child-theme’ is closed to new replies.