| Server IP : 69.164.203.165 / Your IP : 216.73.216.219 Web Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/matlock/wp-content/themes/genesis/ |
Upload File : |
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/genesis/
*/
// Remove default loop.
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'genesis_404' );
/**
* This function outputs a 404 "Not Found" error message.
*
* @since 1.6
*/
function genesis_404() {
genesis_markup(
[
'open' => '<article class="entry">',
'context' => 'entry-404',
]
);
genesis_markup(
[
'open' => '<h1 %s>',
'close' => '</h1>',
'content' => apply_filters( 'genesis_404_entry_title', __( 'Not found, error 404', 'genesis' ) ),
'context' => 'entry-title',
]
);
$genesis_404_content = sprintf(
/* translators: %s: URL for current website. */
__( 'The page you are looking for no longer exists. Perhaps you can return back to the <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it by using the search form below.', 'genesis' ),
esc_url( trailingslashit( home_url() ) )
);
$genesis_404_content = sprintf( '<p>%s</p>', $genesis_404_content );
/**
* The 404 content (wrapped in paragraph tags).
*
* @since 2.2.0
*
* @param string $genesis_404_content The content.
*/
$genesis_404_content = apply_filters( 'genesis_404_entry_content', $genesis_404_content );
genesis_markup(
[
'open' => '<div %s>',
'close' => '</div>',
'content' => $genesis_404_content . get_search_form( 0 ),
'context' => 'entry-content',
]
);
genesis_markup(
[
'close' => '</article>',
'context' => 'entry-404',
]
);
}
genesis();