March 9, 2015 at 6:09 am
#22894
Theme Horse Support Team
Keymaster
Hi Terry,
The there is a hook in the header file. do_action( 'attitude_header' );
This code is in header.php, The core file for this header is inside theme folder (attitude)-> library-> structure-> header-extension.php, all the section of header is derived from header-extension.php from line no 239, you can find this below code
if( 'revolution-slider' == $options[ 'slider_type' ] ) {
if( !empty( $options[ 'header_slider' ] ) && function_exists( 'putRevSlider' ) ) {
if( '1' == $options[ 'revslider_homepage' ] && ( is_home() || is_front_page() ) ) {
putRevSlider( $options[ 'header_slider' ], "homepage" );
$attitude_show_breadcrumb = 'false';
}
$attitude_rev_page_array = explode( ',', $options[ 'pages_id_revslider' ] );
if ( !empty( $options[ 'pages_id_revslider' ] ) && is_page( $attitude_rev_page_array ) ) {
putRevSlider( $options[ 'header_slider' ], $options[ 'pages_id_revslider' ] );
$attitude_show_breadcrumb = 'false';
}
}
}
From here you can make a code customization for each page.
How to unhook the functions? Here is a simple example to display page 404.php
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
}
Thank you!