Theme developement – incative sidebars
-
Im staring to develop a theme but i have a litle issue. I’m trying to add a sidebar to my theme with this code
function theme_2_widgets_init() { register_sidebar( array( 'name' => __('Sidebar', 'theme_2'), 'id' => 'sidebar-1', 'description' => __('Add widgets here to appear in your sidebar.', 'theme_2' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); } add_action('widgets_init', 'theme_2_widgets_init');The thing is, when i go to Appearence -> widgets, my sidebar is there but there is an incative sidebar thats says “this sidebar is no longer available and does not show anywhere on your site…”
is this normal to happen?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Theme developement – incative sidebars’ is closed to new replies.