• Hello, I’ve read several posts containing code to make a header image clickable. I’m using the the “First” theme. I have been unsuccessful in copying and pasting the code into the header php file, (yes, I’m an amateur) and was hoping someone could highlight the code I need to change, and the text I should use: I would be eternally grateful!

    Here is the website: soothetheirsoul.com

    and here is the php header code:

    [Large code excerpt removed by moderator per forum rules. Please use Pastebin for all large code excerpts. It works better anyway.]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Finnegans Pack

    (@finnegans-pack)

    My apologies. New to forums. Here is the section of code I think requires the update:

    <?php if ( is_home() && get_header_image() ) : ?>
    <div id=”header-image” class=”header-image”>
    <img src=”<?php header_image(); ?>” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=””>
    </div><!– #header-image –>
    <?php elseif ( is_page() && has_post_thumbnail() ) : ?>
    <div id=”header-image” class=”header-image”>
    <?php the_post_thumbnail( ‘first-page-thumbnail’ ); ?>
    </div><!– #header-image –>
    <?php endif; ?>
    </header><!– #masthead –>

    I am having the same issue as well. I am trying to add a link to my header image that would link back to the homepage. I don’t know why this is so difficult. If you find out how to do it, I would appreciate it if you could let me know.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make header image on homepage clickable’ is closed to new replies.