• Dear Helper,

    Could you help me please in displaying post meta data for the month and year only above title.
    I would like to remove the value for the day.

    Best regards
    Greg

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hi Greg,

    Thanks for using Tracks!

    The date format can be modified in the Settings menu in your site’s admin dashboard. You can choose from an existing format there, or create your own format. We have a more detailed tutorial on this here as well.

    Thread Starter grego519

    (@grego519)

    Hi Ben,

    thx for you fast reply.
    This means changing date format for the whole site though I just want for the front page.
    Is there a way to modify the code related to this front page ?

    Best
    Greg

    Theme Author Ben Sibley

    (@bensibley)

    Okay, to only change the date format on the front page is going to be more complicated.

    To do this, you’ll want to download an empty Tracks child theme. Then, copy the “content” folder from Tracks into the child theme. Delete all the files in the “content” folder in your child theme except for “post-meta.php”.

    Then, you can modify the date output on line 11. A conditional check like is_home() can be used to supply a different date format for just the homepage.

    Thread Starter grego519

    (@grego519)

    Thanks a lot Ben,

    I will give a try
    Best
    Greg

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘homepage and date on posts’ is closed to new replies.