April 22, 2015 at 4:48 am
#24230
Theme Horse Support Team
Keymaster
Hi rodrigoschneider94,
Copying content-extensions in the child folder will not work. You need to create a functions.php and first of all which functions do you want to change. First of all you need to unhook the functions and then only customize the code. This is the example how to change page 404.php
example:
// 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 ); //for page 404.php
}
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() { // to override 404.php ?>
<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 this is final</p>
</div><!-- .entry-content -->
</div><!-- #content -->
<?php
}
Thank you!