[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> hidden-404.php (source)

   1  <?php
   2  /**
   3   * Title: 404
   4   * Slug: twentytwentyfive/hidden-404
   5   * Inserter: no
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Twenty_Five
   9   * @since Twenty Twenty-Five 1.0
  10   */
  11  
  12  ?>
  13  <!-- wp:group {"style":{"spacing":{"padding":{"right":"0","left":"0"}}},"layout":{"type":"constrained"}} -->
  14  <div class="wp-block-group" style="padding-right:0;padding-left:0">
  15      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|50"}}}} -->
  16      <div class="wp-block-columns alignwide">
  17          <!-- wp:column -->
  18          <div class="wp-block-column">
  19              <!-- wp:image {"scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
  20              <figure class="wp-block-image size-full">
  21                  <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/404-image.webp" alt="<?php echo esc_attr_x( 'Small totara tree on ridge above Long Point', 'image description', 'twentytwentyfive' ); ?>" style="object-fit:cover"/>
  22              </figure>
  23              <!-- /wp:image -->
  24          </div>
  25          <!-- /wp:column -->
  26          <!-- wp:column {"verticalAlignment":"bottom"} -->
  27          <div class="wp-block-column is-vertically-aligned-bottom">
  28              <!-- wp:group {"layout":{"type":"default"}} -->
  29              <div class="wp-block-group">
  30                  <!-- wp:heading {"level":1} -->
  31                  <h1 class="wp-block-heading">
  32                      <?php echo esc_html_x( 'Page not found', '404 error message', 'twentytwentyfive' ); ?>
  33                  </h1>
  34                  <!-- /wp:heading -->
  35                  <!-- wp:paragraph -->
  36                  <p><?php echo esc_html_x( 'The page you are looking for doesn\'t exist, or it has been moved. Please try searching using the form below.', '404 error message', 'twentytwentyfive' ); ?></p>
  37                  <!-- /wp:paragraph -->
  38                  <!-- wp:pattern {"slug":"twentytwentyfive/hidden-search"} /-->
  39              </div>
  40              <!-- /wp:group -->
  41          </div>
  42          <!-- /wp:column -->
  43      </div>
  44      <!-- /wp:columns -->
  45  </div>
  46  <!-- /wp:group -->


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref