badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: change 404 text

#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.