• Resolved catlorayne

    (@catlorayne)


    This is an absolutely fantastic theme!

    How do I change the date format on the main page to remove the comma between the month and year? The front page does not seem to abide by the Settings -> General format.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can do this by creating child theme

    and then copy content.php in to child theme you created..
    go to line 22 where it says
    <p class="post-date"><?php the_time('j M, Y'); ?></p>
    change to
    <p class="post-date"><?php the_time('j M Y'); ?></p>

    Or use this to use the admin panel format:

    <?php the_time(get_option('date_format')); ?>

    The reason it’s only used in single.php currently is because the date may push things down to another line, if the month is written out in full rather than just 3 letters.

    Pretty tight with space on some places to keep it on one line.

    Thanks by the way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change date format’ is closed to new replies.