Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Rotate specific header images by category. Vigilance theme.


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 21, 2009, 11:59 AM
vxfnick
 
2 posts · Sep 2009
Send a message via Skype™ to vxfnick
Hi

I would appreciate advice with this issue. I have never seen so many setting pages in my life in any theme that I have ever worked with.

I am not an expert nor do I claim to be. I can however, work within style sheets and do basic edits in .php but I am afraid this theme is a little over my skill set!

So inlays the issue. Is there a plug-in that will help with my specifications? OR Is there a coding resolution that I can use for rotating header images via category?

After taking a look at the engine that runs this theme I am sure that I will have to edit the engine pages.

Thanks in advance for your responses.

Nick
  #2  
Old Sep 21, 2009, 06:16 PM
Flynn's Avatar
Flynn
 
3,766 posts · Oct 2008
Munich, Germany
You could try to edit functions/bfa_rotating_header_images.php

$files = "";
$imgpath = TEMPLATEPATH . '/images/header/';
$imgdir = get_bloginfo('template_directory') . '/images/header/';

$dh = opendir($imgpath);

to:


$files = "";
if ( is_category('Category name')) {
$imgpath = TEMPLATEPATH . '/images/header/cat1/';
$imgdir = get_bloginfo('template_directory') . '/images/header/
cat1/';
} elseif ( is_category('Category name 2')) {
$imgpath = TEMPLATEPATH . '/images/header/cat2/';
$imgdir = get_bloginfo('template_directory') . '/images/header/
cat2/';
} elseif ( is_category('Category name 3')) {
$imgpath = TEMPLATEPATH . '/images/header/cat3/';
$imgdir = get_bloginfo('template_directory') . '/images/header/
cat3/';
} else { $imgpath = TEMPLATEPATH . '/images/header/';
$imgdir = get_bloginfo('template_directory') . '/images/header/';

}
$dh = opendir($imgpath);


If it doesn't work add

global $wp_query;

right after

function bfa_rotating_header_images() {
  #3  
Old Sep 22, 2009, 10:24 AM
vxfnick
 
2 posts · Sep 2009
Send a message via Skype™ to vxfnick
Thanks for the reply.

There doesn't seem to be a "functions/bfa_rotating_header_images.php" file

I took different variations of this code below and went into every .php file in the site and was unable to find anything that resembled this.

Quote:
Originally Posted by Flynn
$files = "";
$imgpath = TEMPLATEPATH . '/images/header/';
$imgdir = get_bloginfo('template_directory') . '/images/header/';
$dh = opendir($imgpath);
Do you have anything else up your sleeve?

thanks
talk soon
Nick
  #4  
Old Sep 22, 2009, 11:15 AM
juggledad's Avatar
juggledad
 
22,382 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
the rotating headers is part of the Atahualpa theme

there is some code in a post I wrote (see Atahualpa->Headers forum) I think it is a sticky. You could try using it as a basis for changing the header code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
category header images

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page specific header images jts193 Header configuration & styling 2 Sep 1, 2009 06:40 PM
[SOLVED] 3.4.2 Specific header image per category Seb the frog Header configuration & styling 3 Aug 8, 2009 04:07 AM
How to get the header images to rotate in a random fashion? ptuquoc Header configuration & styling 3 Jul 29, 2009 06:02 AM
Can Rotate Header and Resize Header work together? thetravelchronicle Forum How-To 10 Jun 24, 2009 08:24 PM
Header Images Fail to Rotate Yarrokon Header configuration & styling 10 Jun 8, 2009 11:17 AM


All times are GMT -6. The time now is 10:12 PM.


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