[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyone/ -> header.php (source)

   1  <?php
   2  /**
   3   * The header.
   4   *
   5   * This is the template that displays all of the <head> section and everything up until main.
   6   *
   7   * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Twenty_One
  11   * @since Twenty Twenty-One 1.0
  12   */
  13  
  14  ?>
  15  <!doctype html>
  16  <html <?php language_attributes(); ?> <?php twentytwentyone_the_html_classes(); ?>>
  17  <head>
  18      <meta charset="<?php bloginfo( 'charset' ); ?>" />
  19      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  20      <?php wp_head(); ?>
  21  </head>
  22  
  23  <body <?php body_class(); ?>>
  24  <?php wp_body_open(); ?>
  25  <div id="page" class="site">
  26      <a class="skip-link screen-reader-text" href="#content">
  27          <?php
  28          /* translators: Hidden accessibility text. */
  29          esc_html_e( 'Skip to content', 'twentytwentyone' );
  30          ?>
  31      </a>
  32  
  33      <?php get_template_part( 'template-parts/header/site-header' ); ?>
  34  
  35      <div id="content" class="site-content">
  36          <div id="primary" class="content-area">
  37              <main id="main" class="site-main">


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref