forked from initLab/initlanesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
49 lines (23 loc) · 903 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
<?php
/**remove loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
/**remove custom breadcrumbs outside the pgae-wrap id */
remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_breadcrumbs' );
/**add breadcrumbs inside pagewrapID */
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_breadcrumbs' );
add_action( 'genesis_loop', 'zp_404_page' );
function zp_404_page() { ?>
<article class="page type-page status-publish entry">
<div class="post entry">
<?php
printf( '<div %s>', genesis_attr( 'entry-content' ) );
?>
<h1 class="entrytitle"><?php _e( '404 - Page Not Found!' ,'amelie' ); ?></h1>
<p><?php printf( __( 'You\'re looking for a page that does not exist! Please try the navigations above..', 'amelie' )); ?></p>
<?php echo '</div>'; //* end .entry-content
echo '</div>';
?>
</article>
<?php
}
genesis();