97749bf4 by Jeff Balicki

404

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 08595b1d
1 <?php
2 /**
3 * The template for displaying 404 pages (not found)
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 get_header();
12
13 $container = get_theme_mod( 'understrap_container_type' );
14 ?>
15
16 <div class="wrapper" id="error-404-wrapper">
17
18 <div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
19
20 <div class="row">
21
22 <div class="col-md-12 content-area" id="primary">
23
24 <main class="site-main" id="main">
25
26 <section class="error-404 not-found">
27
28 <header class="page-header">
29
30 <h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'understrap' ); ?></h1>
31
32 </header><!-- .page-header -->
33
34 <div class="page-content page entry-header">
35
36 <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'understrap' ); ?></p>
37
38 <div class="search-box"><div id="search-box-content"><?php the_field('page_search_block', 'option'); ?></div></div>
39
40 <?php // the_widget( 'WP_Widget_Recent_Posts' ); ?>
41
42 <?php if ( 1 == 3 ) : // Only show the widget if site has multiple categories. ?>
43
44 <div class="widget widget_categories">
45
46 <h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'understrap' ); ?></h2>
47
48 <ul>
49 <?php
50 wp_list_categories(
51 array(
52 'orderby' => 'count',
53 'order' => 'DESC',
54 'show_count' => 1,
55 'title_li' => '',
56 'number' => 10,
57 )
58 );
59 ?>
60 </ul>
61
62 </div><!-- .widget -->
63
64 <?php endif; ?>
65
66 <?php
67
68 /* translators: %1$s: smiley */
69
70 the_widget( 'WP_Widget_Tag_Cloud' );
71 ?>
72
73 </div><!-- .page-content -->
74
75 </section><!-- .error-404 -->
76
77 </main>
78
79 </div><!-- #primary -->
80
81 </div><!-- .row -->
82
83 </div><!-- #content -->
84
85 </div><!-- #error-404-wrapper -->
86
87 <?php
88 get_footer();
...@@ -19320,6 +19320,17 @@ ul.sf_date_field .sf-datepicker { ...@@ -19320,6 +19320,17 @@ ul.sf_date_field .sf-datepicker {
19320 } 19320 }
19321 } 19321 }
19322 19322
19323 #error-404-wrapper .container {
19324 width: 100%;
19325 display: block;
19326 }
19327 #error-404-wrapper .error-404 .entry-header {
19328 min-height: 50vh;
19329 }
19330 #error-404-wrapper .error-404 #search-box-content {
19331 display: block !important;
19332 }
19333
19323 #wrapper-footer { 19334 #wrapper-footer {
19324 background-color: #F0F0F0; 19335 background-color: #F0F0F0;
19325 padding: 2.0625rem 2.5rem; 19336 padding: 2.0625rem 2.5rem;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -368,4 +368,19 @@ h1+p { ...@@ -368,4 +368,19 @@ h1+p {
368 height:12.5rem; 368 height:12.5rem;
369 } 369 }
370 } 370 }
371 }
372 #error-404-wrapper{
373 .container{
374 width: 100%;
375 display: block;
376 }
377 .error-404{
378 .entry-header{
379 min-height:50vh;
380 }
381 #search-box-content {
382
383 display: block !important;
384 }
385 }
371 } 386 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
2 Theme Name: MSF CA Child 2 Theme Name: MSF CA Child
3 Author: Tenzing Communications 3 Author: Tenzing Communications
4 Template: msf-ca 4 Template: msf-ca
5 Version: 1.0.23 5 Version: 1.0.24
6 */ 6 */
......