-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
35 lines (30 loc) · 1.13 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
<?php
/**
* 404 Page (Not Found) Template
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* @package M5_TFW
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="content404">
<h1 class="page-title"><?php _e( '404 Error', 'buddy-buildr' ); ?></h1>
<p><?php _e( 'Sorry, that page cannot be found. Please use one of the links below to get around.', 'buddy-buildr' ); ?></p>
<ul class="error-links">
<li><a href="<?php echo home_url(); ?> ">Home</a></li>
<li>
<?php
if ( get_option( 'page_for_posts' ) ) {
echo '<a href="'.esc_url(get_permalink( get_option( 'page_for_posts' ) )).'">'.esc_html__( 'Popular Posts', 'buddy-buildr' ).'</a>';
} else {
echo '<a href="'.esc_url( home_url( '/' ) ).'">'.esc_html__( 'Popular Posts', 'buddy-buildr' ).'</a>';
}
?>
</li>
</ul>
</div><!-- .404-wrap -->
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_template_part( 'templates/parts/offcanvas' );
get_footer();