How to change header image URL

Hi wondered how to change the header image URL currently it goes to the homepage. I am aware it can be done is header.php but not sure how?

Excellent theme and the help would be appreciated.

Hi J

Can you share a link to your site and by header image do you mean the logo?


Yes I mean the header logo


You can find the set of codes in header.php file starting from line number 40

<div class="site-branding">
				<?php if ( get_theme_mod('site_logo') ) : ?>
					<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
				<?php else : ?>			
					<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
					<<?php echo $heading_tag; ?> class="site-title">
						<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
							<?php bloginfo( 'name' ); ?>
					</<?php echo $heading_tag; ?>>
					<div class="site-description"><?php bloginfo( 'description' ); ?></div>
				<?php endif; ?>
			<!-- .site-branding --></div>

There are two anchor tags. change the link from here.

Hope it helps!!


Thanks all sorted - I thought it was but didnt want to break it!

you are welcome :slight_smile: