WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to add today's date to navbar (3 posts)

  1. cnymike
    Member
    Posted 5 years ago #

    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?

  2. educationthemes
    Member
    Posted 5 years ago #

    Try adding this

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

    which will give you this

    28 July 2008

  3. flatsilver
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.