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 »

How to put current date/time immediately under header image?


  #1  
Old Aug 11, 2009, 08:41 AM
mptorr
 
13 posts · Aug 2009
Using Atahualpa 3.4.1.

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

Any pointers?

Thanks!
  #2  
Old Aug 11, 2009, 09:35 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 13, 2009, 08:24 AM
Sakshin
 
66 posts · Aug 2009
Amsterdam, Netherlands
Nice one, but how do I style the date and time when placed below the pagebar and above the second bar?
  #4  
Old Aug 13, 2009, 08:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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;
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Aug 13, 2009, 01:27 PM
Sakshin
 
66 posts · Aug 2009
Amsterdam, Netherlands
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.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
date / time link in comments janey73 Comments, trackbacks & pings 15 May 7, 2010 07:38 PM
Tagline: Make it the current date in 3.4.2 jockoe New Versions, & Updating 1 Jul 22, 2009 01:20 PM
Weird phrase showing up instead of comment time / date Taquoriaan Comments, trackbacks & pings 0 May 15, 2009 11:49 PM
comment time/date info shady Comments, trackbacks & pings 1 Feb 27, 2009 05:38 AM
Tagline: Can I make it the current date? jockoe Header configuration & styling 3 Feb 24, 2009 02:41 PM


All times are GMT -6. The time now is 12:53 AM.


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