This is an example how to unhook page 404.php and use your own content.
unhook functions
// Unhook default Thematic functions
function unhook_thematic_functions() {
// Don’t forget the position number if the original function has one
remove_action( ‘attitude_404_content’, ‘attitude_display_404_page_content’, 10 );
}
add_action(‘init’,’unhook_thematic_functions’); // removes the header content by using hook attitude_header
add_action( ‘attitude_404_content’, ‘attitude_child_display_404_page_content’, 10 );
/**
* function to show the footer info, copyright information
*/
Hi Dale,
First of all you need to unhook the functions and then only customize the code in your child theme functions.php. Here is a simple example how to unhook functions and customize the code.
// Unhook default Thematic functions
function unhook_thematic_functions() {
// Don't forget the position number if the original function has one
remove_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 );
}
add_action('init','unhook_thematic_functions'); // removes the header content by using hook attitude_header
add_action( 'attitude_404_content', 'attitude_child_display_404_page_content', 10 );
/**
* function to show the footer info, copyright information
*/
function attitude_child_display_404_page_content() { ?>
<div id="content">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></h1>
</header>
<div class="entry-content clearfix" >
<p>Thank you</p>
</div><!-- .entry-content -->
</div><!-- #content -->
<?php
}
Do in this way for content-extension.php and if you are unable to fix it then you need to hire a developer to fix it.
Thank you!