__( 'Default Widgets', 'allegiant' ), 'id' => 'primary-widgets', 'description' => __( 'Sidebar shown in all standard pages by default.', 'allegiant' ), 'before_widget' => '
', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Secondary Widgets', 'allegiant' ), 'id' => 'secondary-widgets', 'description' => __( 'Shown in pages with more than one sidebar.', 'allegiant' ), 'before_widget' => '', 'before_title' => '', ) ); $footer_columns = apply_filters( 'cpotheme_subfooter_columns', 3 ); if ( '' == $footer_columns ) { $footer_columns = 3; } for ( $count = 1; $count <= $footer_columns; $count++ ) { register_sidebar( array( 'id' => 'footer-widgets-' . $count, 'name' => __( 'Footer Widgets', 'allegiant' ) . ' ' . $count, 'description' => __( 'Shown in the footer area.', 'allegiant' ), 'before_widget' => '', 'before_title' => '', ) ); } } //Registers all menu areas add_action( 'widgets_init', 'cpotheme_init_menu' ); function cpotheme_init_menu() { register_nav_menus( array( 'top_menu' => __( 'Top Menu', 'allegiant' ), 'main_menu' => __( 'Main Menu', 'allegiant' ), 'footer_menu' => __( 'Footer Menu', 'allegiant' ), ) ); }