I’m trying to do the same thing. My child-theme is set up and my style.css is working just fine but below is my functions.php file. Where and what code do I add to get my child-themes header-extensions.php file to work?
<?php
if ( ! function_exists( ‘attitude_header_title’ ) ) :
/**
* Show the title in header
*
* @since Attitude Pro 1.0
*/
function attitude_header_title() {
if( is_archive() ) {
$attitude_header_title = single_cat_title( ”, FALSE );
}
elseif( is_404() ) {
$attitude_header_title = __( ‘Page NOT Found’, ‘attitude’ );
}
elseif( is_search() ) {
$attitude_header_title = __( ‘Search Results’, ‘attitude’ );
}
elseif( is_page_template() ) {
$attitude_header_title = get_the_title();
}
else {
$attitude_header_title = get_the_title();
}
return $attitude_header_title;
}
endif;
?>