section add_theme_support( 'automatic-feed-links' ); //Add thumbnail support add_theme_support( 'post-thumbnails' ); if ( ! isset( $content_width ) ) $content_width = 560; //Load Bootstrap.js and other custom scripts function bluem_scripts_with_jquery() { // Register the script like this for a theme: wp_register_script( 'bootstrap', get_template_directory_uri() . '/libraries/bootstrap/js/bootstrap.js', array( 'jquery' ) ); // For either a plugin or a theme, you can then enqueue the script: wp_enqueue_script( 'bootstrap' ); // Register the script like this for a theme: wp_register_script( 'fullscreenbg', get_template_directory_uri() . '/js/fullscreenbg.js', array( 'jquery' ) ); // For either a plugin or a theme, you can then enqueue the script: wp_enqueue_script( 'fullscreenbg' ); } add_action( 'wp_enqueue_scripts', 'bluem_scripts_with_jquery' ); // Filter for title function bluem_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'bluem' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'bluem_wp_title', 10, 2 ); // Custom Header function bluem_custom_header_setup() { register_nav_menus( array( 'header_menu' => __( 'Header Menu', 'bluem' ) ) ); $args = array( 'width' => 1024, 'height' => 330, 'flex-width' => true, 'flex-height'=> true, 'uploads' => true, 'default-image' => get_template_directory_uri() . '/images/header.jpg', 'admin-head-callback' => '', 'random-default' => true ); global $wp_version; add_theme_support( 'custom-header', $args); register_default_headers( array( 'mountain' => array( 'url' => get_template_directory_uri() . '/images/header.jpg', 'thumbnail_url' => get_template_directory_uri() . '/images/header-thumb.jpg', ), ) ); } add_action( 'after_setup_theme', 'bluem_custom_header_setup' ); // Load Superfish.js function bluem_superfish() { if (!is_admin()) { wp_register_script( 'superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery') ); wp_enqueue_script( 'superfish'); add_action('wp_head', 'superfish_config'); function superfish_config() { ?> /', '