get_template_directory_uri() .'/assets/images/header.jpg', 'width' => 1920, 'height' => 540, 'uploads' => true, 'default-text-color' => "000", 'wp-head-callback' => 'edulite_header_css', ); add_theme_support( 'custom-header', $defaults ); /** * Set the content width in pixels, based on the theme's design and stylesheet. */ $GLOBALS['content_width'] = apply_filters( 'edulite_content_width', 980 ); // Add theme support for Semantic Markup add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption' ) ); add_theme_support( 'customize-selective-refresh-widgets' ); // add excerpt support for pages add_post_type_support( 'page', 'excerpt' ); if ( is_singular() && comments_open() ) { wp_enqueue_script( 'comment-reply' ); } // Menus //add_theme_support( 'menus' ); register_nav_menus(array( 'primary' => esc_html__('primary Menu', 'edulite') )); } add_action( 'after_setup_theme', 'edulite_theme_setup' ); } if( ! function_exists( 'edulite_header_css' ) ) { function edulite_header_css() { ?> esc_html__( 'Blog Sidebar', "edulite"), 'id' => 'blog-sidebar', 'description' => esc_html__( 'Sidebar on the blog layout.', "edulite"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); // Footer Sidebar register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area', "edulite"), 'id' => 'edulite-footer-widget-area', 'description' => esc_html__( 'The footer widget area', "edulite"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'edulite_sidebars' );