forked from woocommerce/storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
67 lines (45 loc) · 1.55 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
<?php
/**
* The template for displaying 404 pages (not found).
*
* @package storefront
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<div class="page-content">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'storefront' ); ?></h1>
</header><!-- .page-header -->
<p><?php esc_html_e( 'Nothing was found at this location. Try searching, or check out the links below.', 'storefront' ); ?></p>
<?php
if ( is_woocommerce_activated() ) {
the_widget( 'WC_Widget_Product_Search' );
} else {
get_search_form();
}
if ( is_woocommerce_activated() ) {
echo '<div class="fourohfour-columns-2">';
echo '<div class="col-1">';
storefront_promoted_products();
echo '</div>';
echo '<div class="col-2">';
echo '<h2>' . esc_html__( 'Product Categories', 'storefront' ) . '</h2>';
the_widget( 'WC_Widget_Product_Categories', array(
'count' => 1,
) );
echo '</div>';
echo '</div>';
echo '<h2>' . esc_html__( 'Popular Products', 'storefront' ) . '</h2>';
echo storefront_do_shortcode( 'best_selling_products', array(
'per_page' => 4,
'columns' => 4,
) );
}
?>
</div><!-- .page-content -->
</section><!-- .error-404 -->
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>