Genesis Theme – Industry child theme Header questions
-
I am working on a site https://ericmschwanke.com
With this theme It is calling for the uploaded header image as seen below. I can easily change the size from page to page but how would I go about overriding the header for specific pages?
This is the code in the PHP file.
//* Get uploaded logo
$logo_upload = get_theme_mod( ‘logo_upload’ );
if( $logo_upload != ” ) {
add_action(‘genesis_header’, ‘industry_custom_logo’, 5);
function industry_custom_logo() {
echo ‘<div class=”header-logo”><img src=”‘ , get_theme_mod(‘logo_upload’) , ‘” alt=”‘ , get_bloginfo ( ‘name’ ) , ‘”></div>’;
//Remove site title and description
remove_action( ‘genesis_site_description’, ‘genesis_seo_site_description’ );
remove_action( ‘genesis_site_title’, ‘genesis_seo_site_title’ );
}
}//* Get header textarea
$header_text = get_theme_mod( ‘header-textbox’ );
if( $header_text != ”) {
add_action(‘genesis_header’, ‘industry_header_text’, 10);
function industry_header_text() {
if (is_front_page()) {
echo ‘<div class=”header-text”>’ , get_theme_mod(‘header-textbox’) , ‘</div>’;
}
}
}
- The topic ‘Genesis Theme – Industry child theme Header questions’ is closed to new replies.