100, 'width' => 100, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); /* Nav Menu options */ register_nav_menu( 'primary', esc_html__( 'Header Navigation Menu', 'breeze' ) ); register_nav_menu( 'secondary', esc_html__( 'BlogHeader Navigation Menu', 'breeze' ) ); register_nav_menu( 'secondary-1', esc_html__( 'Footer Navigation Menu', 'breeze' ) ); register_nav_menus( array('offcanvas' => esc_html__( 'offcanvas-menu', 'breeze' ),) ); } endif; add_action( 'after_setup_theme', 'breeze_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function breeze_content_width() { $GLOBALS['content_width'] = apply_filters( 'breeze_content_width', 640 ); } add_action( 'after_setup_theme', 'breeze_content_width', 0 ); /* Registers an editor stylesheet for the theme */ function breeze_add_editor_styles() { add_editor_style( 'css/breeze-custom-editor-style.css' ); } add_action( 'admin_init', 'breeze_add_editor_styles' ); function breeze_enqueue_comments_reply() { if( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'comment_form_before', 'breeze_enqueue_comments_reply' ); // Add sticky class to sticky post function breeze_post_classes( $classes ){ if ( is_sticky() ) { $classes[] = 'sticky'; } return $classes; } add_filter('post_class', 'breeze_post_classes'); /* ============================ SIDEBAR FUNCTIONS ============================ */ function breeze_sidebar_init(){ register_sidebar( array( 'name' => esc_html__( 'Search Sidebar', 'breeze' ), 'id' => 'blog-sidebar-1', 'description' => esc_html__('Dynamic Blog Sidebar', 'breeze' ), 'before_widget' => '", 'before_title' => '