-
Notifications
You must be signed in to change notification settings - Fork 3
/
404.php
42 lines (34 loc) · 1.15 KB
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* The template for displaying 404 pages (not found)
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Beyond 2016 1.0
*/
get_header('404'); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php echo apply_filters( 'beyond2016_404_title', _e( 'Oops! That page can’t be found.', 'beyond2016' ) ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php echo apply_filters('beyond2016_404_text', _e( 'It looks like nothing was found at this location. Maybe try a search?', 'beyond2016' ) ); ?></p>
<?php get_search_form(); ?>
</div><!-- .page-content -->
<div class="error404-recent-posts">
<?php
$newargs = array(
'numberposts' => 3,
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => false
);
do_action('beyond2016_recent_posts', $newargs);
?>
</div>
</section><!-- .error-404 -->
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>