Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Rotate specific header images by category. Vigilance theme.


  #1  
Old Sep 21, 2009, 10: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, 05:16 PM
Flynn's Avatar
Flynn
 
3,768 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, 09: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, 10:15 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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 05:40 PM
[SOLVED] 3.4.2 Specific header image per category Seb the frog Header configuration & styling 3 Aug 8, 2009 03:07 AM
How to get the header images to rotate in a random fashion? ptuquoc Header configuration & styling 3 Jul 29, 2009 05:02 AM
Can Rotate Header and Resize Header work together? thetravelchronicle Forum How-To 10 Jun 24, 2009 07:24 PM
Header Images Fail to Rotate Yarrokon Header configuration & styling 10 Jun 8, 2009 10:17 AM


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


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