Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] where can I edit php script morning, day and night header without lossing my (http://forum.bytesforall.com/showthread.php?t=16269)

_kimberley Dec 15, 2011 03:36 AM

[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?

juggledad Dec 15, 2011 04:15 AM

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.

_kimberley Dec 15, 2011 05:03 AM

Yes you are great! Thanks...

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


All times are GMT -6. The time now is 09:10 AM.

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