-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
48 lines (40 loc) · 1.18 KB
/
404.php
File metadata and controls
48 lines (40 loc) · 1.18 KB
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
<?php
/**
* 404 Template
*
* Displayed when a page is not found.
*/
get_header();
?>
<main id="main" class="site-main" role="main">
<?php do_action( 'pioneer_main_start' ); ?>
<article class="pioneer-404">
<div class="pioneer-404__content">
<h1 class="pioneer-404__heading">
<?php echo esc_html( function_exists( 'pioneer_get_404_heading' ) ? pioneer_get_404_heading() : __( 'Page Not Found', 'pioneer' ) ); ?>
</h1>
<div class="pioneer-404__message">
<?php
if ( function_exists( 'pioneer_get_404_message' ) ) {
echo wp_kses_post( pioneer_get_404_message() );
} else {
esc_html_e( 'Sorry, the page you were looking for could not be found.', 'pioneer' );
}
?>
</div>
<?php if ( ! function_exists( 'pioneer_404_show_search' ) || pioneer_404_show_search() ) : ?>
<div class="pioneer-404__search">
<?php get_search_form(); ?>
</div>
<?php endif; ?>
<div class="pioneer-404__actions">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="pioneer-404__button">
<?php esc_html_e( 'Return Home', 'pioneer' ); ?>
</a>
</div>
</div>
</article>
<?php do_action( 'pioneer_main_end' ); ?>
</main>
<?php
get_footer();