404.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The template for displaying 404 pages (not found).
  4. *
  5. * @package Dyad
  6. */
  7. get_header(); ?>
  8. <main id="primary" class="content-area" role="main">
  9. <div class="entry-inner">
  10. <header class="entry-header">
  11. <h1><?php esc_html_e( 'Oops! That page can\'t be found.', 'dyad-2' ); ?></h1>
  12. </header><!-- .entry-header -->
  13. <div class="entry-content">
  14. <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'dyad-2' ); ?></p>
  15. <?php get_search_form(); ?>
  16. <div class="error404-widgets">
  17. <?php the_widget( 'WP_Widget_Recent_Posts', 'number=10', 'before_title=<h2 class="widget-title">' ); ?>
  18. <?php if ( dyad_2_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
  19. <div class="widget widget_categories">
  20. <h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'dyad-2' ); ?></h2>
  21. <ul>
  22. <?php
  23. wp_list_categories( array(
  24. 'orderby' => 'count',
  25. 'order' => 'DESC',
  26. 'show_count' => 1,
  27. 'title_li' => '',
  28. 'number' => 10,
  29. ) );
  30. ?>
  31. </ul>
  32. </div><!-- .widget -->
  33. <?php endif; ?>
  34. </div><!-- .error404-widgets -->
  35. </div><!-- .entry-content -->
  36. </div><!-- .entry-main -->
  37. </main><!-- #main -->
  38. <?php get_footer(); ?>