-
-
Notifications
You must be signed in to change notification settings - Fork 366
/
Copy path404.php
46 lines (42 loc) · 1.9 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
<?php
/**
* The template for displaying 404 pages (not found).
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Sakurairo
*/
add_action('wp_head', function() {
wp_dequeue_style('wp-block-library');
wp_dequeue_style('wp-block-library-theme');
wp_dequeue_style('entry-content');
}, 5);
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="<?php echo esc_url(iro_opt('favicon_link', '')); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<section class="error-404 not-found">
<div class="error-img" style="height: 66%;">
<div class="anim-icon" id="404" style="height: 100%;"></div>
</div>
<div class="err-button back" style="display: flex; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center;">
<a id="golast" href="javascript:history.go(-1);"><?php _e('Return to previous page', 'sakurairo'); ?></a>
<a id="gohome" href="<?php echo esc_url(home_url('/')); ?>"><?php _e('Return to home page', 'sakurairo'); ?></a>
</div>
<div style="display:block; width:284px;margin: auto;">
<p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?', 'sakurairo'); ?></p>
<form class="s-search" method="get" action="<?php echo esc_url(home_url('/')); ?>" role="search">
<input class="text-input" style="padding: 8px 20px;" type="search" name="s" placeholder="<?php _e('Search...', 'sakurairo'); ?>" required>
</form>
</div>
</section>
<script src="<?php echo $shared_lib_basepath . '/js/anf.js'; ?>" type="text/javascript"></script>
<?php wp_footer(); ?>
</body>
</html>