Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 15, 2011, 03:36 AM
_kimberley's Avatar
_kimberley
 
18 posts · Dec 2011
Amsterdam
[SOLVED] where can I edit php script morning, day and night header without lossing my

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
 
22,265 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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
 
18 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 10:29 AM.


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