wp-rdnyc/src/setup.php
2021-10-31 16:43:36 -04:00

36 lines
864 B
PHP
Executable file

<?php
namespace WP_RDNYC;
/**
* Set up theme defaults and registers support for various WordPress features.
*
* @author Recovery Dharma NYC
* @since 1.0.0
*/
add_action( 'after_setup_theme', function () {
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
// Let WordPress manage the document title.
add_theme_support( 'title-tag' );
// Enable support for Post Thumbnails on posts and pages.
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( [
'navbar-main-menu' => __( 'Navbar Main Menu', 'wp-rdnyc' ),
] );
// Switch default core markup for search form, comment form, and comments to output valid HTML5.
add_theme_support( 'html5', [
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
] );
} );