tag in the document head, and expect WordPress to provide it for us. add_theme_support("title-tag"); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'top' => esc_html__( 'Top Menu', 'parallel' ), ) ); // Make theme available for translation. Translations can be filed in the /languages/ directory. load_theme_textdomain( 'parallel', get_template_directory() . '/languages' ); // Set up the WordPress core custom logo feature. add_theme_support( 'custom-logo', array( 'height' => 50, 'width' => 300, 'flex-width' => true, 'flex-height' => true, ) ); // Set up the WordPress core custom logo feature. add_theme_support( 'custom-header' ); } add_action( 'after_setup_theme', 'parallel_setup' ); // remove notice dismissal flags from all users that might have it. function parallel_update_user_notices() { delete_metadata( 'user', null, 'parallel_welcome_admin_notice', null, true ); } add_action( 'switch_theme', 'parallel_update_user_notices' ); // redirect to setup page after activation function parallel_redirect_after_activation() { wp_safe_redirect(admin_url('themes.php?page=parallel-welcome#getting_started')); } add_action( 'after_switch_theme', 'parallel_redirect_after_activation' );