tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( json_decode( '{"headerDesktopMenu":"Header Desktop Menu","headerMobileMenu":"Header Mobile Menu","subfooterMenu":"Subfooter Menu"}', true ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); } } // Bluemed_setup add_action( 'after_setup_theme', 'bluemed_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function bluemed_content_width() { $GLOBALS['content_width'] = apply_filters( 'bluemed_content_width', 640 ); } add_action( 'after_setup_theme', 'bluemed_content_width', 0 ); /** * Enqueue scripts and styles. */ function bluemed_scripts() { // 3rd party styles wp_enqueue_style( 'slick-carousel', get_template_directory_uri() . '/css/slick.css' ); wp_enqueue_style( 'animate-css', get_template_directory_uri() . '/css/animate.css' ); // Theme styles wp_enqueue_style( 'bluemed-shortcode-css-style', get_template_directory_uri() . '/css/shortcode.css' ); wp_enqueue_style( 'bluemed-style', get_stylesheet_uri() ); // 3rd party JS wp_enqueue_script( 'smooth-scroll', get_template_directory_uri() . '/js/smooth-scroll.js', array( "jquery" ), '1.0', true ); wp_enqueue_script( 'slick-carousel', get_template_directory_uri() . '/js/slick.js', array( "jquery" ), '1.0', true ); wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); wp_enqueue_script( 'sticky', get_template_directory_uri() . '/js/sticky.js', array( "jquery" ), '1.0.3', true ); wp_enqueue_script( 'parallax-js', get_template_directory_uri() . '/js/parallax.min.js', array( 'jquery' ), '1.0.0', true ); wp_enqueue_script( 'vide-js', get_template_directory_uri() . '/js/jquery.vide.min.js', array( 'jquery' ), '1.0.0', true ); wp_enqueue_script( 'easypiechart', get_template_directory_uri() . '/js/jquery.easypiechart.min.js', array( 'jquery' ), '2.1.7', true ); wp_enqueue_script( 'inviewport', get_template_directory_uri() . '/js/isInViewport.min.js', array( 'jquery' ), '2.3.0', true ); wp_enqueue_script( 'fitvids-js', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ), '1.1.0', true ); // Theme JS wp_enqueue_script( 'bluemed-custom-js', get_template_directory_uri() . '/js/custom.js', array( "jquery" ), '1.0.0', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'bluemed_scripts' ); /** * TGM Activation */ require get_template_directory() . '/inc/tgm-activation.php'; /** * Import utility functions */ require get_template_directory() . '/inc/utils.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Load dynamic css generated from theme option values. */ require get_template_directory() . '/inc/dynamic-styles.php'; /** * Google Fonts typography */ require get_template_directory() . '/inc/typography.php'; /** * Load FontAwesome from CDN */ require get_template_directory() . '/inc/fontawesome.php'; /** * Load Custom Walker for the header menu */ require get_template_directory() . '/inc/custom-walker.php'; /** * Load Custom Comment rendering */ require get_template_directory() . '/inc/comments.php'; /** * Admin customizations */ if ( is_admin() ) { require get_template_directory() . '/inc/admin.php'; } /** * Unyson configuration */ require get_template_directory() . '/inc/unyson.php';