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 »

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


  #1  
Old Aug 11, 2009, 07: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, 08:35 AM
juggledad's Avatar
juggledad
 
23,682 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, 07: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, 07:47 AM
juggledad's Avatar
juggledad
 
23,682 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, 12: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -6. The time now is 08:35 AM.


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