Sidebar in Customiser
-
I am trying to develop my own theme.
I can add Widgets via Appearance > Widgets but would like to add this sidebar to Appeaance > Customise > Widgets. Currently in there is “Your theme has 1 widget area, but this particular page doesn’t display it.” and the preview is showing the widgets.
My code is;
functions.php if ( function_exists('register_sidebar') ) register_sidebar(); index.php <?php get_sidebar(); ?> sidebar.php <div class="sidebar"> <ul> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?> <?php wp_list_pages('depth=3&title_li=<h2>Pages</h2>'); ?> <li> <h2><?php _e('Categories'); ?></h2> <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> </ul> </li> <li> <h2><?php _e('Archives'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php get_links_list(); ?> <?php endif; ?> </ul> </div>
Thanks
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Sidebar in Customiser’ is closed to new replies.