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 »

image in horizontal bar; and rotate header image based on time


  #1  
Old Sep 30, 2012, 12:49 PM
SiaRa
 
19 posts · Aug 2012
Netherlands
Hi all,
I got 2 questions.

1: Is it possible to put an image in a horizontal bar and if so, how do I do that?

2: I'd like to rotate my header image based on time. I.e.: from 7AM - 6PM I want to show the one image and from 6PM to 7AM I want to show the other image. Is that possible and if so, how do I do that?

Any help would be much appreciated!
  #2  
Old Sep 30, 2012, 03:28 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
1: Is it possible to put an image in a horizontal bar and if so, how do I do that?
yes, search the forums
Quote:
2: I'd like to rotate my header image based on time. I.e.: from 7AM - 6PM I want to show the one image and from 6PM to 7AM I want to show the other image. Is that possible and if so, how do I do that?
probably, you would have to edit the jscript and change the code. Please share the code you come up with for others to use.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 7, 2012, 01:49 PM
SiaRa
 
19 posts · Aug 2012
Netherlands
well, as for my 2nd question.
I've got some code now, but I do not know where to insert it in the bfa_header_config.php file.
Could you please help me with that?

PHP Code:
 <?php

date_default_timezone_set
("CET"); // Dutch time


$hour date"H" ); // Take current hour to put into a variable.

if ( $hour >= && $hour <= )
{
    
// if it's between 0h00 and 5h59
    
?>
    <img src="http://domain.com/img/0h.png" />
    <?php
}
elseif ( 
$hour >= && $hour <= 11 )
{
    
// if it's between 6h00 and 11h59
    
?>
    <img src="http://domain.com/img/6h.png" />
    <?php
}
elseif ( 
$hour >= 12 && $hour <= 17 )
{
    
// if it's between 12h00 and 17h59
    
?>
    <img src="http://domain.com/img/12h.png" />
    <?php
}
elseif ( 
$hour >= 18 && $hour <= 23 )
{
    
// if it's between 18h00 and 23h59
    
?>
    <img src="http://domain.com/img/18h.png" />
    <?php
}
else
{
    
// if it's none of the above; whenever that will happen...
    
?>
    <img src="http://domain.com/img/default.png" />
    <?php

}
?>
  #4  
Old Oct 8, 2012, 05:16 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you need to put it in bfa_header_config.php - search for "%image' and that is the area it goes
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Header image doesn't rotate pitchbender New Versions, & Updating 3 May 23, 2011 11:30 AM
Header Image appears to rotate sideshow557 Header configuration & styling 1 Dec 1, 2010 07:08 PM
How can I control the header image based on the page? ochayemin Header configuration & styling 1 Nov 7, 2010 07:12 PM
Header = Image rotate just 1time then = blank mira Header configuration & styling 1 Mar 29, 2010 11:07 AM


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


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