[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template for displaying 404 pages (not found)
   4   *
   5   * @link https://codex.wordpress.org/Creating_an_Error_404_Page
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Twenty_One
   9   * @since Twenty Twenty-One 1.0
  10   */
  11  
  12  get_header();
  13  ?>
  14  
  15      <header class="page-header alignwide">
  16          <h1 class="page-title"><?php esc_html_e( 'Nothing here', 'twentytwentyone' ); ?></h1>
  17      </header><!-- .page-header -->
  18  
  19      <div class="error-404 not-found default-max-width">
  20          <div class="page-content">
  21              <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentytwentyone' ); ?></p>
  22              <?php get_search_form(); ?>
  23          </div><!-- .page-content -->
  24      </div><!-- .error-404 -->
  25  
  26  <?php
  27  get_footer();


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref