= 3 ) : // Three widgets per row if there's three or more widgets $widget_classes .= ' col-md-4'; elseif ( 2 == $widget_count ) : // If two widgets are published $widget_classes .= ' col-md-6'; elseif ( 1 == $widget_count ) : // If just on widget is active $widget_classes .= ' col-md-12'; endif; return $widget_classes; } elseif ( $c9_fresh_status === '1' ) { // This is a fresh install $widget_classes = ' col-sm-6 col-md-3'; return $widget_classes; } } } add_action( 'widgets_init', 'c9_widgets_init' ); if ( ! function_exists( 'c9_widgets_init' ) ) { /** * Initializes themes widgets. */ function c9_widgets_init() { register_sidebar( array( 'name' => __( 'Footer', 'c9-togo' ), 'id' => 'footerfull', 'description' => __('Full bottom widget with dynamic responsive grid that shows on every page. Suggested 3-6 widgets.', 'c9-togo'), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Right Sidebar', 'c9-togo' ), 'id' => 'right-sidebar', 'description' => __( 'Right sidebar widget area displayed when using the Right Sidebar Layout page template. Widget content fades in after scrolling down on frontend..', 'c9-togo' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Left Sidebar', 'c9-togo' ), 'id' => 'left-sidebar', 'description' => __( 'Left sidebar widget area displayed when using the Right Sidebar Layout page template. Widget content fades in after scrolling down on the frontend.', 'c9-togo' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } } // endif function_exists( 'c9_widgets_init' ).