• Resolved dmcohen

    (@dmcohen)


    Is that possible? After removing the header on my site (see here), I’d like to offer visitors an alternative, simple/uncluttered way to direct people back to the front page. I thought I could do this by link-ifying the featured image… any ideas?
    (Thanks!)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link to a page with featured image?

    Thread Starter dmcohen

    (@dmcohen)

    Sure: here’s one.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thanks, that looks easy. I had a little panic when I thought you wanted the header image linked.

    Can you copy the header.php file from the parent theme and put it into your Child Theme folder?
    Then edit the ‘header.php’ file from within your Child Theme and replace all of the code with this code: http://pastebin.com/b8X1Hizr

    Let us know when you’ve done that.

    Thread Starter dmcohen

    (@dmcohen)

    It works– thank you hugely! One question: will this code work if I employ it the same way on other sites built with Twenty Seventeen? I know so little PHP that I don’t even really know what I’m looking at here….

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    That’s difficult to say, but it should work in other implementations of Twenty Seventeen.
    I almost forgot, now that your featured image is wrapped in a link the alternative text of the image should now say “Home page”. This is because your alternative text is no longer describing the image, it is acting as the link text.

    • This reply was modified 7 years, 4 months ago by Andrew Nevins.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Making the featured image clickable’ is closed to new replies.