• Hi!

    I can’t figure out how to add a link to my header image. I’ve tried the solution of one of the posts from here, where a onclick attribute was used, but that didn’t work. Do you have any idea how can I do that?

    My website is: https://btutourpromotions.com

    My header code is this:

    <header id="masthead" class="site-header" role="banner" <?php if ( ! empty( $header_image ) ) { ?>style="background:url(<?php header_image(); ?>) no-repeat center center; background-size: cover; height:<?php echo get_custom_header()->height; ?>px;" <?php } ?>>
    
    		<hgroup>
    
    			<div class="site-text">
    
    				<h1 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' ); ?></a></h1>
    
    				<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    
    			</div>
    
    		</hgroup>
    
    	</header><!-- #masthead .site-header -->

    Thank you for your time.

  • The topic ‘Can’t add link to header image’ is closed to new replies.