-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.php
31 lines (22 loc) · 891 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
<?php
/** Remove default loop **/
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
remove_action( 'genesis_before_content_sidebar_wrap', 'wpselect_before_content_sidebar_wrap' );
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'wpselect_404' );
function wpselect_404() { ?>
<div class="post hentry">
<h1 class="entry-title"><?php _e( 'Page Not Found', 'genesis' ); ?></h1>
<div class="entry-content">
<p>The page you are looking for no longer exists. Perhaps you can try searching for it or use one of the following links.</p>
<?php get_search_form(); ?>
<br />
<?php
/** wpselect_page_archive_content defined in lib/child-post.php */
wpselect_page_archive_content();
?>
</div><!-- end .entry-content -->
</div><!-- end .postclass -->
<?php
}
genesis();