tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /** * Default thumbnail size set to 171x180 */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 171, 180, true ); add_theme_support( 'custom-logo', array( 'height' => 40, 'width' => 100, 'flex-width' => true, ) ); /** * Add format support */ add_theme_support( 'post-formats', array( 'image', 'video' ) ); register_nav_menus( array( 'primary' => __( 'Primary Menu', 'bootguy' ), 'secondary' => __( 'Secondary Menu', 'bootguy' ), ) ); add_editor_style( array( '/assets/bootstrap-3.3.7/css/bootswatch.min.css', 'assets/css/editor-style.css') ); } add_action( 'after_setup_theme', 'bootguy_theme_setup' ); function bootguy_widgets_init() { register_sidebar( array( 'name' => __( 'Widget Area', 'bootguy' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your sidebar.', 'bootguy' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'bootguy_widgets_init' ); function bootguy_enqueue_script() { /** * Load required scripts, bootstrap script saved locally */ wp_register_script( 'bootguy-bs-js', get_stylesheet_directory_uri().'/assets/bootstrap-3.3.7/js/bootstrap.min.js', array('jquery'), false, true ); wp_register_script( 'bootguy-theme-js', get_stylesheet_directory_uri().'/assets/js/bootguy-theme.js', array('jquery'), false, true ); wp_enqueue_script('bootguy-bs-js'); wp_enqueue_script('bootguy-theme-js'); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } function bootguy_enqueue_style() { /** * Load required styles bootstrap cdn files saved locally * */ wp_enqueue_style('bootguy-bs', get_stylesheet_directory_uri().'/assets/bootstrap-3.3.7/css/bootswatch.min.css', false); //wp_enqueue_style('bootguy-bs-theme-cdn', get_stylesheet_directory_uri().'/assets/bootstrap-3.3.7/css/bootstrap-theme.min.css', false); wp_enqueue_style( 'bootguy-stylesheet', get_stylesheet_uri(), false ); } add_action( 'wp_enqueue_scripts', 'bootguy_enqueue_style' ); add_action( 'wp_enqueue_scripts', 'bootguy_enqueue_script' ); require get_template_directory() . '/inc/template-tags.php'; require get_template_directory() . '/inc/widgets.php'; ?>