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: BLOG Medium – Custom Post Category

#25536

Hi aris,

First of all you need to unhook the functions and then only customize the code. Creating the same directory folder and copying all the content will not change the code. Here is a simple example how to unhook functions and you do the same for the above code that i have added yesterday.
This is just an example.

//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
 */
 
 
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 
}

All this code you must add in the functions.php file.
Thank you!