Forums

changing date format (3 posts)

  1. ringsoft
    Member
    Posted 2 years ago #

    Hi

    I'be got my WordPress install up and running, but am having a problem getting the date displayed as I would like, in UK format, when using a different theme.

    I've read the info at http://codex.wordpress.org/Formatting_Date_and_Time and would be very happy to change the format to

    l, F j, Y

    But it's not clear to me which file I need to change... the theme I'm using seems to be overriding the date format I specify on the settings/general page.

    Which file should I be looking to edit?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    yes, the theme controls your date format as displayed.

    go into index.php in your theme

    look for <?php the_time('F j, Y'); ?>
    or something similar and put your formatting in the brackets

    you may also want to edit other theme files such as page.php and single.php as necessary

  3. ringsoft
    Member
    Posted 2 years ago #

    Sir, you a scholar and a gentleman.

    Two hours banging my head against the wall trying to figure it out myself, sorted here in 10 minutes.

    Many thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic