forked from idxbroker/Equity-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
38 lines (29 loc) · 948 Bytes
/
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
<?php
/**
* Equity Framework
*
* WARNING: This file is part of the core Equity Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Equity\Templates
* @author IDX, LLC
* @license GPL-2.0+
* @link
*/
//* Remove default loop
remove_action( 'equity_loop', 'equity_do_loop' );
add_action( 'equity_loop', 'equity_404' );
/**
* This function outputs a 404 "Not Found" error message
*
* @since 1.0
*/
function equity_404() {
echo '<article class="entry">';
printf( '<h1 class="entry-title">%s</h1>', __( 'Page not found, error 404', 'equity' ) );
echo '<div class="entry-content">';
echo '<p>' . sprintf( __( 'This content no longer exists. Visit the site\'s <a href="%s">homepage</a> or try a search using the form below.', 'equity' ), home_url() ) . '</p>';
echo '<p>' . get_search_form() . '</p>';
echo '</div></article>';
}
equity();