'', 'flex-width' => true, 'width' => 864, 'flex-height' => true, 'height' => 200, 'uploads' => true, 'random-default' => false, 'header-text' => false, 'default-text-color' => '', 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $blogkori_defaults ); // Register the navigation menu register_nav_menus( array( 'primary' => __( 'Primary Menu', 'blogkori' ) ) ); //Post thumbnails need this in functions.php add_theme_support('post-thumbnails'); add_image_size( 'blogkori-category-thumb', 300, 300 ); } endif; add_action('after_setup_theme', 'blogkori_setup'); // Add scripts function blogkori_scripts() { // Load bootstrap stylesheet wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/css/bootstrap.min.css' ); // Load theme stylesheet wp_enqueue_style( 'blogkori-style', get_stylesheet_uri()); // Load bootstrap javascript wp_enqueue_script( 'bootstrap-scripts', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '3.3.2', true ); // Load jquery wp_enqueue_script('jquery'); // Comment reply script if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'blogkori_scripts' ); // Adding page navigation $blogkori_pg_defaults = array( 'before' => '

' . __( 'Pages:', 'blogkori' ), 'after' => '

', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'separator' => ' ', 'nextpagelink' => __( 'Next page', 'blogkori' ), 'previouspagelink' => __( 'Previous page', 'blogkori' ), 'pagelink' => '%', 'eco' => 1 ); // Default Content Width if ( ! isset( $content_width ) ) $content_width = 640; // Register Custom Navigation Walker require_once('wp-bootstrap-navwalker.php'); // Add ID and CLASS attributes to the first