June 30, 2014 at 5:14 pm
#11796
Hellen
Participant
Hi,
this is my complete functions.php in the child-theme directory:
<?php
// Exit if accessed directly
if ( !defined('ABSPATH')) exit;
/* Add custom functions below */
if ( ! function_exists( 'attitude_display_404_page_content' ) ) :
add_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 );
function attitude_display_404_page_content() {
?>
<div id="content">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></a></h1>
</header>
<div class="entry-content clearfix" >
<p><?php _e( 'This is my own text.', 'attitude' ); ?></p>
<h3><?php _e( 'lorem ipsum', 'attitude' ); ?></h3>
<h3><?php _e( 'Please try the following instead:', 'attitude' ); ?></h3>
<p><?php _e( 'Check for a mis-typed URL error, then press the refresh button on your browser.', 'attitude' ); ?></p>
</div><!-- .entry-content -->
</div><!-- #content -->
<?php
}
endif;
I am still getting the same error.