Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Rotating Header Images link to Different pages instead of home page? (http://forum.bytesforall.com/showthread.php?t=3372)

WordPressZen.com Sep 10, 2009 10:48 AM

Rotating Header Images link to Different pages instead of home page?
 
Hi all! I am new to the forum, but have been using Atahualpa for almost a year on close to 20 different sites - Atahualpa is the BOMB!!!! I'm also very excited to try ThemeFrame when it debuts...

Anyhow, I am currently working on a project for which I am utilizing rotating header images -- but I would like to be able to assign a custom hyperlink to each image.
I.E.
headerimage1.jpg --> http://URL1.com
headerimage2.jpg --> http://URL2.com
headerimage3.jpg --> http://URL3.com
and so on

If there is a way to do this from the Theme Options Interface, I haven't been able to find it. I have only been able to find the menu option to toggle "header image link to home page off/on".

I realize that header images are "background" images (saw this in a different post where someone wanted to have alt-text for their header image), and I'm hoping that this won't preclude the possibility of doing what I'd like to do...

So
Is it possible to define a 1:1 image to link relationship for the rotating header image? Perhaps using an array or something? I also considered that I could widgetize the header image area and then use a plugin that I know of that does the rotating linked image thing (Gallery Widget Pro)

Thanks in advance for any/all thoughts and help!

juggledad Sep 10, 2009 01:32 PM

You will have to implement something like this with coding changes

kjetil Sep 10, 2009 03:09 PM

Maybe it would be possible to implement a "featured posts images" (linked to featured posts) functionality in the header?

I found Featured content slider (which seems the nicest, but some people experience problems) and the Dynamic Content Gallery plugin - both WP27-28 compatible.
Both requires a code snippet to be inserted in some template - like...
PHP Code:

<?php include (ABSPATH /wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php’); ?>

It should work fine - but there's a BIG question: In a complex theme like Atahualpa, WHERE should I / anyone insert the code?
Thanks,
Kjetil
- just rebuilding Dolcevita.no with Atahualpa :)

WordPressZen.com Sep 10, 2009 06:21 PM

I'm not code savvy enough myself to attempt writing the PHP to do this. But I am code savvy enough to insert it where it would need to be inserted.

If I get desperate I guess I'll try widgetizing the header and see if that plugin Gallery Widget Pro will do the trick.

How about this less lofty version of my question:
Is it possible to change the option of Make header image clickable? = YES (links to home page by default) into a link to some URL other than the home page?

WordPressZen.com Sep 10, 2009 06:28 PM

@ kjetil
I just found another thread in the forum from earlier this year on the same topic, and Flynn specified where in the code the header could be edited

http://forum.bytesforall.com/showthread.php?t=481

kjetil Sep 11, 2009 09:39 AM

Thanks a lot, but I can't make this work.
In the thread you referred to it is said that I should add in my piece of code around line 886 in header.php - around this line:
PHP Code:

<?php bfa_header_config($bfa_ata_configure_header); ?>

That was obviously from an older version of the theme, but I found that code on line 51 in header.php. So, as a new line 52 I added first the code for the Featured content (which wouldn't work) and then tried the Dynamic Content Gallery:
PHP Code:

<?php include (ABSPATH /wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php’); ?>

...and of course followed the instructions as good as I can.
Whatever I try, I get errors when opening the page - typically repeated lines of this:
Quote:

Warning: Division by zero in /xxx/www/marked/wp-content/themes/atahualpa342/header.php on line 52
Warning: include(0php�) [function.include]: failed to open stream: No such file or directory in /xxx/www/marked/wp-content/themes/atahualpa342/header.php on line 52
I THINK I'm in the right place, so - any idea where I make a wrong step?
It would be fun (for many) if I/we could make this work.
Thanks,
Kjetil

juggledad Mar 31, 2010 04:52 AM

HOWTO: Set different header images clickable (linked) to a different location (http://forum.bytesforall.com/showthread.php?t=6538)

globalcashsite Oct 12, 2010 07:40 AM

I am also looking for the same. I want to display around 6 banners linked to 6 different sites with size 728 x 90. Any one can help me please?

GCS

juggledad Oct 12, 2010 09:32 AM

globalcashsite - post #7 points you to the solution

dreggs180 Oct 13, 2010 12:13 PM

How do I get to that link? Every time I try to go to it, I get an error message saying I don't have permissions.

Maybe because I just signed up?

juggledad Oct 13, 2010 12:41 PM

the gold forums are available to forum members who have donated $30 or more.


All times are GMT -6. The time now is 02:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.