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 »

[SOLVED] where can I edit php script morning, day and night header without lossing my


  #1  
Old Dec 15, 2011, 03:36 AM
_kimberley's Avatar
_kimberley
 
51 posts · Dec 2011
Amsterdam
I got this php script and I works perfectly:

<img src="http://www.lasvegascity.nl/wp-content/themes/atahualpa/images/header/header_<?php
$hour = date('Hi'); // hour of the day, 24 hour clock
if ($hour > 1759 or $hour < 600) {
$timepic = 'night';
} elseif ($hour > 1200) {
$timepic = 'day';
} else {
$timepic = 'morning';
}
echo $timepic;

?>.png">

But when I change <?php echo bfa_header_config(); ?> in header.php, the menu wil disapear. Where can I put this php code so my menu won't disapear?
  #2  
Old Dec 15, 2011, 04:15 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you are using this to replace the header image here is what you do
1) install the plugin 'exec-php'
2) at ato->Style & edit HEADER AREA->Configure Header Area replace %image with
HTML Code:
<?php bfa_widget_area('name=header_image_area'); ?>
3) go visit the home page (this causes the widget area to be created
4) go to dashboard->Appearances->widgets - there should now be a widget area 'header_image_area'
5) add a text widget to this area
6) put your code in the text widget
7) optional - style it

that's it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 15, 2011, 05:03 AM
_kimberley's Avatar
_kimberley
 
51 posts · Dec 2011
Amsterdam
Yes you are great! Thanks...

The greatest thing is, when I update the ata theme, the code will not change...

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Replace Header image and set Image from script??? fotomag Header configuration & styling 3 Apr 1, 2011 03:45 AM
Replace php or Use Header image to edit for slideshow Phocusmag Sidebars & Widgets 14 Jul 27, 2010 05:15 PM
[SOLVED] Header script conflict with nextgen gallery view? Athena account2 Header configuration & styling 1 Mar 6, 2010 10:53 PM
How do I replace Header Image with OpenX Ad Script? MustardSeed Header configuration & styling 1 Feb 26, 2010 05:05 AM


All times are GMT -6. The time now is 06:17 AM.


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