-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
64 lines (50 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<title>
<?
$titles = explode(',', get_option( 'blogname' ).' - 404');
echo implode(' : ',$titles);
?>
</title>
<meta name="description" content="kindness page - 404 - Sorry, What you are looking for does not exist or is no longer available" />
<? if( ! has_site_icon() ) { ?>
<link rel="apple-touch-icon" href="<?= get_template_directory_uri(); ?>/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="<?= get_template_directory_uri().'/favicon.png'; ?>" />
<? } else { ?>
<link rel="apple-touch-icon" href="<?= wp_get_attachment_image_url(get_option('site_icon'),'full'); ?>">
<link rel="shortcut icon" type="image/x-icon" href="<?= wp_get_attachment_image_url(get_option('site_icon'),'full'); ?>" />
<? } ?>
</head>
<body>
<div>
<img src="<?= get_template_directory_uri().'/adds/404PAGE.PNG'; ?>">
<h1>OPS! YOUR CONTENT HAS LOST!</h1>
<p>Sorry, What you are looking for does not exist or is no longer available</p>
<p><button onclick="history.back()">Go Back</button></p>
</div>
</body>
<style>
html,body{
display:grid;
margin:0;
padding:0;
align-content:center;
text-align:center;
}
body>div{
text-align:center;
}
body>div>img{
margin-bottom:20px;
max-width:80%;
}
button{
padding: 10px;
border: 1px solid #ccc;
}
</style>
</html>