WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven Header Images with Individual Links (3 posts)

  1. raidious
    Member
    Posted 2 years ago #

    Here is the link to the development version of a site I am working on:

    http://compassrose.raidiouscontrol.com

    I have created a child version of the twentyeleven theme and edited it heavily. I have changed the default image size for the rotating header image successfully and it rotates on every page of the site. I just received a request from the client that each of the three header images but converted to links. While this isn't difficult to do with the code listed on this post (http://wordpress.org/support/topic/twenty-eleven-header-clickable-image-link-customization-help-needed), the client asked that each image link to a different internal site URL.

    Do you have any suggestions on how I can achieve this?

    Thanks in advance for your help!

  2. Ziv
    Member
    Posted 2 years ago #

    Can you copy the section's code to pastebin and post it here? It would be a lot easier that way.

  3. raidious
    Member
    Posted 2 years ago #

    Copy header.php into the child theme, edit it and find:
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>">

    replace with this:
    <a href="http://linkurl">

    But that would only allow me to make every header image link to one URL. I need each of the three images (and possible more in the future) to be links to three different URLs respectively.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic