forked from bootscore/bootscore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
42 lines (33 loc) · 1.28 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
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Bootscore
* @version 6.0.0
*/
// Exit if accessed directly
defined('ABSPATH') || exit;
get_header();
?>
<div id="content" class="site-content <?= apply_filters('bootscore/class/container', 'container', '404'); ?> <?= apply_filters('bootscore/class/content/spacer', 'pt-4 pb-5', '404'); ?>">
<div id="primary" class="content-area">
<main id="main" class="site-main">
<section class="error-404 not-found">
<div class="page-404">
<h1 class="mb-3">404</h1>
<!-- Remove this line and place some widgets -->
<p class="alert alert-info mb-4"><?php esc_html_e('Page not found.', 'bootscore'); ?></p>
<!-- 404 Widget -->
<?php if (is_active_sidebar('404-page')) : ?>
<div><?php dynamic_sidebar('404-page'); ?></div>
<?php endif; ?>
<a class="btn btn-outline-primary" href="<?= esc_url(home_url()); ?>" role="button"><?php esc_html_e('Back Home »', 'bootscore'); ?></a>
</div>
</section><!-- .error-404 -->
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- #content -->
<?php
get_footer();