-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path404.php
47 lines (38 loc) · 1.14 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
43
44
45
46
47
<?php
/**
* Title
*
* The template for displaying 404 pages (Not Found).
*
* @package responsive_mobile
* @license license.txt
* @copyright 2014 CyberChimps Inc
* @since 0.0.1
*
* Please do not edit this file. This file is part of the responsive_mobile Framework and all modifications
* should be made in a child theme.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
get_header(); ?>
<div id="content" class="content-area">
<main id="main" class="site-main error-page" role="main">
<?php responsive_mobile_entry_before(); ?>
<section id="post-0" class="error404 not-found">
<?php responsive_mobile_entry_top(); ?>
<div class="post-entry">
<?php
// Added filter to get custom_404 option working.
$custom_404 = apply_filters( 'responsive_mobile_custom_404', '' );
if( $custom_404 )
echo esc_html( $custom_404 );
else
get_template_part( 'template-parts/content', 'none' );
?>
</div><!-- .post-entry -->
</section><!-- #post-0 -->
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>