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)
-   -   Tagline: Can I make it the current date? (http://forum.bytesforall.com/showthread.php?t=528)

jockoe Feb 24, 2009 01:27 PM

Tagline: Can I make it the current date?
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.)

Flynn Feb 24, 2009 01:44 PM

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

jockoe Feb 24, 2009 02:39 PM


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.

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

Flynn Feb 24, 2009 02:41 PM

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>' 

All times are GMT -6. The time now is 11:32 AM.

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