daveyjonas
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Agama] Remove header image from all other pages<!– Main Wrappe –>
<div id=”main-wrapper”><header id=”masthead” class=”site-header clearfix <?php Agama::header_class(); ?>” role=”banner”>
<?php get_template_part( ‘framework/headers’ ); // Get headers ?>
<!– Header Image –>
<?php if ( get_header_image() ) : ?><!– Added lines here – START –>
<?php if( is_home () || is_front_page() ) :?>
<!– Added lines here – STOP –>“>
<img src=”<?php esc_url( header_image() ); ?>” class=”header-image” width=”<?php echo esc_attr( get_custom_header()->width ); ?>” height=”<?php echo esc_attr( get_custom_header()->height ); ?>” alt=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” />
<!– Added lines here – START –>
<?php endif;?><!– Added lines here – STOP –>
<?php endif; ?><!– / Header Image –></header>
<!– #masthead –><?php
#############################################################
# SLIDER ACTION
##########################################################################################################################
# ADDED LINES HERE START
#############################################################
if( is_home () || is_front_page() ):
#############################################################
# ADDED LINES HERE STOP
#############################################################if( get_theme_mod( ‘agama_slider_image_1’, AGAMA_IMG . ‘header_img.jpg’ ) ||
get_theme_mod( ‘agama_slider_image_2’, AGAMA_IMG . ‘header_img.jpg’ ) ):do_action( ‘agama_slider_action’ );
endif;
#############################################################
# ADDED LINES HERE START
#############################################################
endif;
echo ““;
#############################################################
# ADDED LINES HERE STOP
#############################################################
#############################################################
# BREADCRUMB ACTION
#############################################################
if( get_theme_mod( ‘agama_breadcrumb’, true ) ):
// If breadcrumb is disabled on homepage do not show anything
if( get_theme_mod( ‘agama_breadcrumb_homepage’, ” ) && is_home() ||
get_theme_mod( ‘agama_breadcrumb_homepage’, ” ) && is_front_page() ): else:do_action( ‘agama_breadcrumbs_action’ );
endif;
endif; ?>I’ve added this code to the header.php agoralive suggested. The header did appear only on the homepage but I ended up with a lot of layout issues as indicated Here
The website is not launched as of yet, but it’s on a slightly tight deadline so any help would be appreciated!