Found this code snippet to change header logo front page of wordpress by adding to header.php file.
If (is_front() || is_home) {
//Your logo for the front page
}Else {
// Your other logo
}
How can I get something like this to call different logo for different Wordpress page ID's?
This is my themes call for the logo presently:
<div class="logo">
<?php $log_url = sh_set( $options, 'site_logo', get_template_directory_uri().'/images/logo.png' );
$log_url = ( $log_url ) ? $log_url : get_template_directory_uri().'/images/logo.png';
$logo_size = @getimagesize($log_url); //printr($logo_size); ?>
<a title="<?php echo esc_attr(get_bloginfo('name')); ?>" href="<?php echo esc_url(home_url()); ?>">
<img src="<?php echo esc_url($log_url); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" width="<?php echo sh_set( $logo_size, 0); ?>" height="<?php echo sh_set( $logo_size, 1); ?>" >
</a>
</div>
And I should be able to add this call tag is_page( array( 42, 54, 6 ) ) to it to add a different logo to just those pages, just don't know how.
</div>