-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.php
34 lines (22 loc) · 1.03 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
<?php
defined( 'ABSPATH' ) || exit;
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'virtuoso_404' );
function virtuoso_404() {
echo genesis_html5() ? '<article class="entry">' : '<div class="post hentry">';
add_action( 'genesis_404_entry', '<div class="wrap">', 7 );
add_action( 'genesis_404_entry', '</div>' );
printf( '<h1 class="entry-title">%s</h1>', apply_filters( 'genesis_404_entry_title', __( 'Error 404', 'virtuoso' ) ) );
echo '<div class="entry-content">';
echo apply_filters( 'genesis_404_entry_content', '<p>' . 'ooops, something went wrong.' . '</p>' );
?>
<div id="parallax">
<div class="parallax_wrap">
<img src="<?php echo esc_url( get_site_url() ); ?>/wp-content/themes/virtuoso/assets/images/parallax3.png" />
<img src="<?php echo esc_url( get_site_url() ); ?>/wp-content/themes/virtuoso/assets/images/parallax2.png" />
<img src="<?php echo esc_url( get_site_url() ); ?>/wp-content/themes/virtuoso/assets/images/parallax1.png" />
</div>
</div>
<?php
}
genesis();