WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to add today’s date to navbar

[Resolved] How to add today’s date to navbar

  • This should be easy but I cannot discover how to do this easily.

    I’ve got a top navbar with a lot of extra space. I’d like to add the current date and possibly the time.

    So it would look vaguely like…

    Home About Blog Today is: July 29, 2008

    How would I go about doing that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try adding this

    <?php echo date("j F Y"); ?>

    which will give you this

    28 July 2008

    hi, i was wondering after i insert this code,
    how do i position it? (style it?)
    i want to move it to the bottom right of the header,
    and make the numbers and letters white.

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to add today’s date to navbar’ is closed to new replies.
Skip to toolbar