• I know this question has been asked multiple times but all of the threads I have search were the topic creator asking to link the header image to their home or index page.

    I am wanting to change the link for my header image to my other website.

    I know I need to change something in the header.php but am not sure what…

    Here is the code from my header.php

    <div id="header">
    	<div id="branding" class="clearfix">
    	<div class="logo clearfix">
    		<?php if ( is_home() || is_front_page() ) : ?>
    		<h1 class="blog-name"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    		<h2 class="blog-description"><?php bloginfo('description'); ?></h2>
    		<?php else: ?>
    		<span class="blog-name"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></span>
    		<span class="blog-description"><?php bloginfo('description'); ?></span>
    		<?php endif ?>
    	</div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • i can’t see any linked image code in your snippet.

    general, this part is defining the link:
    <a href="<?php bloginfo('url'); ?>">

    if you want it to link to somewhere else, change it:
    <a href="https://linkurl_to_somewhere">

    what theme are you using?
    is the header image at the moment linking to your home page?
    link to your site?

    Thread Starter devvv

    (@devvv)

    Thank you alchymyth! I can’t believe how simple that was… This part threw me off “<?php bloginfo(‘url’); ?>”>”

    I thought I had to edit an external file to update the link.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link header image to another website’ is closed to new replies.