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 »

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

Old Dec 15, 2011, 04:36 AM
_kimberley's Avatar
51 posts · Dec 2011
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;


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?
Old Dec 15, 2011, 05:15 AM
juggledad's Avatar
23,696 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
Old Dec 15, 2011, 06:03 AM
_kimberley's Avatar
51 posts · Dec 2011
Yes you are great! Thanks...

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


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 04:45 AM
Replace php or Use Header image to edit for slideshow Phocusmag Sidebars & Widgets 14 Jul 27, 2010 06:15 PM
[SOLVED] Header script conflict with nextgen gallery view? Athena account2 Header configuration & styling 1 Mar 6, 2010 11:53 PM
How do I replace Header Image with OpenX Ad Script? MustardSeed Header configuration & styling 1 Feb 26, 2010 06:05 AM

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

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