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' ); /* * 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', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'gallery', 'quote', 'link', 'video', 'audio', ) ); // Set up the WordPress custom header feature. add_theme_support( 'custom-header', apply_filters( 'armada_custom_header_args', array( 'default-color' => '', ) ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'armada_custom_background_args', array( 'default-color' => '', 'default-image' => '', ) ) ); } endif; // company_setup add_action( 'after_setup_theme', 'armada_setup' ); /** * Set the content width based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) { $content_width = 1200; } /** * Customize theme more link. */ function armada_the_content_more_link() { return '' . esc_html__( 'Read More', 'armada') . ''; } add_filter( 'the_content_more_link', 'armada_the_content_more_link' ); /** * 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 armada_content_width() { $GLOBALS['content_width'] = apply_filters( 'theme_content_width', 1200 ); } add_action( 'after_setup_theme', 'armada_content_width', 0 ); /** * Register theme navigation. * * @link */ function armada_register_nav_menus() { register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'armada' ), 'footer' => esc_html__( 'Footer Menu', 'armada' ), ) ); } add_action( 'init', 'armada_register_nav_menus' );