Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13018

    Hi,

    i will change the date / time format on the search results to german format.

    Where i should do that?

    Regards,

    Jürgen

    #77505

    Hi Jürgen,

    In your theme files, you’ll need to edit includes>loop-search.php.

    Search for:

    echo "<span class='news-time'>".get_the_time("F j, Y, g:i a")."</span>";

    Change the format for the date: “F j, Y, g:i a” to what you would like. Just make sure to keep the formatting exactly the same.

    Here is a quick reference for formatting: http://codex.wordpress.org/Formatting_Date_and_Time

    Regards,

    Devin

    #77506

    Thanks Devin,

    this was a great help for me.

    Now i´m looking where i can change the date /time from the Como Widget? Which file i should search?

    Regards,

    Jürgen

    #77507

    Hi Jürgen,

    Open up framework>php>class-framework-widgets.php and search for:

    echo "<span class='news-time'>".get_the_time("F j, Y, g:i a")."</span>";

    There are two of these in the file, the second one on line 903 is the one that is output in the combo widget.

    Regards,

    Devin

    #77508

    Thanks,

    all perfectly done.

    Regards,

    Jürgen

    #77509

    Great! Let us know if you need anything else :)

    Regards,

    Devin

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Change Date / Time Format’ is closed to new replies.