• I’m using the Family Theme and I like it but I have an issue with the header image. I would like the header image to only be on the front main page, not on every page. Can anyone help me with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would like the same so is there anyone that can help?

    Hello,

    Did either of you work out how to do this?

    Thanks

    You can do it by modifying family_get_header_image function to

    function family_get_header_image() {
    	if (get_header_image() && is_front_page()) {
    		if (get_theme_mod( 'family_header_link' )) {
    			echo '<a href="'.get_theme_mod( 'family_header_link' ).'"><img class="header-image" src="' . esc_url( get_header_image() ) . '" alt="' . get_bloginfo( 'description' ) . '" /></a>';
    		} else {
    			echo '<img class="header-image" src="' . esc_url( get_header_image() ) . '" alt="' . get_bloginfo( 'description' ) . '" />';
    		}
    	}
    }

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header image issue’ is closed to new replies.