Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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, 11:49 AM
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, 02:28 PM
juggledad's Avatar
juggledad
 
23,632 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, 12: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, 04:16 AM
juggledad's Avatar
juggledad
 
23,632 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -6. The time now is 01:29 PM.


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