Support » Everything else WordPress » Rotating Header Images With Individual External Links? Can it be done?
5 years, 8 months ago
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’.
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.
Lead Plugin Wrangler
It’s not easy, which is why the answers are so complicated.
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.
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).
Mmm. I guess I’m going to have to investigate this further.