-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
91 lines (76 loc) · 1.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* The template for displaying 404 pages (Not Found)
*
* @package dyepie
* @subpackage dyepie_404
* @since dyepie 1.0
*/
get_header('login-register'); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<div class="page-wrapper">
<div class="page-content">
<img src="/wp-content/themes/dyepie/images/rick_morty_404.webp" alt="">
<?php get_search_form(); ?>
</div><!-- .page-content -->
</div><!-- .page-wrapper -->
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer('login-register');
if(is_404()){ ?>
<header class="page-header">
<h1 class="page-title"><?php _e( 'it\'s 404 Morty', 'dyepie' ); ?></h1>
</header>
<style>
body{
}
#wpadminbar{
display: none;
}
.content-area{
text-align: center;
text-transform: capitalize;
}
.page-content h2,
.page-title{
font-size: 36px !important;
}
.page-title{
font-size: 60px !important;
margin-bottom: .5em;
}
.page-content img{
width: 450px;
height: auto;
margin-bottom: 1em;
border-radius: 20px;
}
div#primary * {
color: #222;
font-size: 22px;
text-align: center;
}
.site-content{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background: #fff;
}
.search_form{
width: 100%;
border: 1px solid #ccc;
}
.search_submit{
margin-top: 1em;
border-radius: 5px;
width: 25%;
background: #222 !important;
color: #fff !important;
text-transform: capitalize;
}
</style>
<?php
} ?>