404.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 Pen
  8. */
  9. get_header(); ?>
  10. <div id="primary" class="content-area">
  11. <main id="main" class="<?php echo esc_attr( pen_content_classes() ); ?>" role="main">
  12. <section class="error-404 not-found">
  13. <header class="page-header">
  14. <h1 class="page-title">
  15. <?php
  16. esc_html_e( 'Oops! That page can&rsquo;t be found.', 'pen' );
  17. ?>
  18. </h1>
  19. </header><!-- .page-header -->
  20. <div class="page-content clearfix">
  21. <div class="pen_content_wrapper">
  22. <p>
  23. <?php
  24. esc_html_e( 'It looks like nothing was found at this location, sorry!', 'pen' );
  25. ?>
  26. </p>
  27. <?php
  28. if ( ! pen_html_search_box() ) {
  29. ?>
  30. <div id="error-404-search">
  31. <?php
  32. get_search_form();
  33. ?>
  34. </div>
  35. <?php
  36. }
  37. ?>
  38. </div>
  39. </div><!-- .page-content -->
  40. </section><!-- .error-404 -->
  41. </main><!-- #main -->
  42. <?php
  43. if ( is_singular() ) {
  44. pen_html_jump_menu( 'content' );
  45. }
  46. ?>
  47. </div><!-- #primary -->
  48. <?php
  49. get_footer();