forked from Archie22is/ct-bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
56 lines (49 loc) · 1004 Bytes
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package CT_Bones
*/
get_header();
?>
<main id="primary" class="site-main">
<?php
the_block(
'page-header',
array(
'class' => 'page-header--404',
'title' => esc_html__( 'Oops! That page can’t be found.', 'ct-bones' ),
)
);
ob_start();
echo '<p>';
esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'ct-bones' );
echo '</p>';
echo get_search_form(
array(
'id' => '404',
)
);
the_block(
'button',
array(
'button' => __( 'Back to Homepage', 'ct-bones' ),
'type' => 'dark',
'class' => 'message-block__404-button',
'url' => esc_url( home_url( '/' ) ),
)
);
$content = ob_get_clean();
the_block(
'message-block',
array(
'class' => 'message-block--404',
'content' => $content,
)
);
?>
</main><!-- #main -->
<?php
get_footer();