tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* register NAV menus */ register_nav_menu( 'header-menu', __( 'Header Menu', 'titanic' ) ); register_nav_menu( 'footer-menu', __( 'Footer Menu', 'titanic' ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'gallery', 'caption', ) ); // Indicate widget sidebars can use selective refresh in the Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); } endif; // rabbityel_setup add_action( 'after_setup_theme', 'titanic_setup' ); /** * Register widget area. * * @since Twenty Fifteen 1.0 * * @link https://codex.wordpress.org/Function_Reference/register_sidebar */ function titanic_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar on right', 'titanic' ), 'id' => 'sidebar-right', 'description' => __( 'Add widgets here to appear in your sidebar.', 'rabbityel' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'titanic_widgets_init' ); function titanic_theme_style() { wp_enqueue_style( 'rabbityel-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'titanic_theme_style' ); /* CONTENT WIDTH */ function titanic_content_width() { $GLOBALS['content_width'] = apply_filters( 'titanic_content_width', 1000 ); } add_action( 'after_setup_theme', 'titanic_content_width', 0 );