Change date format on Newsworthy theme.

  • Author
    Posts
  • #1310587

    mattylockey
    Member

    Hello, I just wondered if it was possible to change the way the date is displayed in the yellow box next to each post on the “Newsworthy” theme? I have gone into settings and changed the date format there but it doesn’t affect this. As I am in England I would prefer to have the date as DD/MM/YYYY rather than MM/DD/YYYY if possible?

    Thanks,
    Matt Lockey

    The blog I need help with is mattofthedayblog.wordpress.com.

    #1310858

    justjennifer
    Moderator

    I just checked in my test site and you are right. Even when the date is set to European date format, they continue to display MM/DD/YYYY on the site.

    This date display format does seem to be hardwired into the theme, but I will tag this for Theme Staff reply.

    #1310862

    cainm
    Staff

    Hi there,

    Thank you for the report. I’ve opened a ticket to see about getting this fixed. I’ll update you once that’s done.

    Best,
    Michael

    #1310912

    justjennifer
    Moderator

    @cainm- hello, anything newsworthy here?

    #1310921

    justjennifer
    Moderator

    Hm, according to the Staff reply in this thread:
    https://en.forums.wordpress.com/topic/newsworthy-theme?replies=11#post-1349300

    Unfortunately this is a theme feature

    #1310924

    nblank
    Member

    Hi,

    It is possible to change the data format.

    Open the file:
    public_html/blog/wp-content/themes/newsworthy/content.php

    Look at line 4:
    get_the_date(‘m.d.y’)

    I changed it to:
    get_the_date(‘d-M-Y’)

    The format for date’s can be found on: http://php.net/manual/en/function.date.php

    Greetings, Nanno

    #1310925

    justjennifer
    Moderator

    It is possible to change the data format.

    Open the file:
    public_html/blog/wp-content/themes/newsworthy/content.php

    @nblank – WordPress.com users do not have access to the underlying PHP files in order to do this. For clarity: http://support.wordpress.com/com-vs-org/

    #1310930

    nblank
    Member

    Hi Jennifer,

    Thats to bad. I have the site hosted on my own domain. That way I can upload the files myself and make some customizations in the code.

    Greetings, Nanno

The topic ‘Change date format on Newsworthy theme.’ is closed to new replies.