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 »

Tagline: Can I make it the current date?


  #1  
Old Feb 24, 2009, 12:27 PM
jockoe
 
23 posts · Feb 2009
This was my question at the WP forums:
Instead of something static, could I use the current date in the tagline? (So it updates automatically every day)

The reply I got was:
You need to figure out where the tagline is being displayed (typically header.php for a theme) then use the proper format of the PHP date('') command.

Can someone point me to where I would need to make this change? (More specific than 'header.php". Like a line number.)
  #2  
Old Feb 24, 2009, 12:44 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Find, in functions/bfa_header_config.php, around line 90

PHP Code:
$logo_area .= '<p class="tagline">' get_bloginfo'description' ) . '</p>'
and change to

PHP Code:
$logo_area .= '<p class="tagline">' .  date('l jS \of F Y') . '</p>'
The above would display:

Monday 8th of August 2009

Here's a list of date display options http://www.php.net/date

  #3  
Old Feb 24, 2009, 01:39 PM
jockoe
 
23 posts · Feb 2009
Flynn,

Thank you for responding so quickly. Unfortunately, that did not do it. (Even after deleting my temporary Internet Files) Here is the line as it now reads in my functions/bfa_header_config.php file.
Quote:
$logo_area .= '<p class="tagline">' . date('l, F j, Y') . '</p>';
I did not dawn on me until just now that the tagline I am using is actually the one that is the overlay for the header image. Would that be the reason it did not work?
  #4  
Old Feb 24, 2009, 01:41 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
In that case find in functions/bfa_header_config.php around line 174 (the following is just part of the line):

PHP Code:
'<p class="tagline">' get_bloginfo'description' ) . '</p>' 
and change to
PHP Code:
'<p class="tagline">' date('l, F j, Y') . '</p>' 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Current page color different than Hover color? 25jai Page & Category Menu Bars 7 Jul 17, 2009 05:06 AM
html in tagline mrjohnston Header configuration & styling 1 May 25, 2009 07:45 PM
tagline layout boudewijn Header configuration & styling 3 Apr 10, 2009 11:45 PM
Color of children of current page in menu BradBrown Page & Category Menu Bars 0 Mar 22, 2009 02:38 PM
Current state of Bugs/Fixes Flynn New Versions, & Updating 13 Dec 19, 2008 09:09 AM


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


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