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)
-   -   How to put current date/time immediately under header image? (http://forum.bytesforall.com/showthread.php?t=2902)

mptorr Aug 11, 2009 07:41 AM

How to put current date/time immediately under header image?
 
Using Atahualpa 3.4.1.

I haven't found other posts showing how to achieve this.

Any pointers?

Thanks!

juggledad Aug 11, 2009 08:35 AM

you could do something like this. In ATO->Style & edit HEADER AREA->Configure Header Area add some PHP after %image. This example will display the image, a bar, the date and time and then a bar
HTML Code:

%image %bar2 <?php echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));?> %bar2

Sakshin Aug 13, 2009 07:24 AM

Nice one, but how do I style the date and time when placed below the pagebar and above the second bar?

juggledad Aug 13, 2009 07:47 AM

slap a div around it
HTML Code:

%image %bar2 <div class="menu_date"><?php echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));?></div> %bar2
and then in CSS Inserts use someting like this
HTML Code:

.menu_date {
color: #123456;
border: solid 3px #000000;
font-family: arial, "comic sans ms", sans-serif;
font-size: 1.8em;
text-align:center;
}


Sakshin Aug 13, 2009 12:27 PM

Nice one! That worked fine. But now, the number won't change; 2000-07-01T00:00:00+01:00
they stay like this and I really hoped that they would show the actual day, not so much the time.
Do you got any suggestions?

With regards,
Sakshin.


All times are GMT -6. The time now is 09:54 PM.

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