section add_theme_support( 'automatic-feed-links' ); //Add thumbnail support add_theme_support( 'post-thumbnails' ); if ( ! isset( $content_width ) ) $content_width = 560; // Load jQuery if (!is_admin()) add_action("wp_enqueue_scripts", "jquery_enqueue", 11); function jquery_enqueue() { wp_deregister_script('jquery'); wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js", false, null); wp_enqueue_script('jquery'); } //Load Bootstrap.js function bluem_scripts_with_jquery() { // Register the script like this for a theme: wp_register_script( 'custom-script', 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( 'custom-script' ); } add_action( 'wp_enqueue_scripts', 'bluem_scripts_with_jquery' ); // Clean up the function removeHeadLinks() { remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); } add_action('init', 'removeHeadLinks'); remove_action('wp_head', 'wp_generator'); // Declare sidebar widget zone if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Sidebar Widgets', 'id' => 'sidebar-widgets', 'description' => 'These are widgets for the sidebar.', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '' )); } // 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() { ?> /', '