Forums

Rotating Header Images With Individual External Links? Can it be done? (5 posts)

  1. ttj90
    Member
    Posted 9 months ago #

    How do,

    I'm using this cracking theme: http://kitmacallister.com/2011/brunelleschi
    The function to use random rotating headers is incorporated as is the new standard WP Theme, 'TwentyEleven'.

    BUT..

    How can I make each image that is displayed clickable with an external new window link?

    I've checked various plugins and they're either far to complicated or awkward to implement around the theme.

    I was thinking that it would be a simple few lines of CSS. I'm not THAT clued up on otherwise I'd write it myself. I've already given my blog the WSOD today so I thought I'd ask for help.

    Any help on this would be fantastic. I thank you in advance.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    It's not easy, which is why the answers are so complicated.

  3. ancawonka
    Member
    Posted 9 months ago #

    You can't do it w/ CSS - you need to affect the HTML of the header image in order to make this happen. Which means either learning some PHP of finding some plugin that works for this purpose.

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    What follows is theoretical, pseudo code, ideas.

    If you're using Twenty Eleven, the header image IS a link (to the main domain.com site).

    You COULD edit header.php to check 'if this is a post, AND there is a custom value 'header-link', then change the URL to that instead'

    Mind, I don't know if the header link is in functions.php (harder to edit) or header.php (easier).

  5. ttj90
    Member
    Posted 9 months ago #

    Mmm. I guess I'm going to have to investigate this further.

Reply

You must log in to post.

About this Topic