date format on top bar

tokyojo August 6, 2020 at 4:21 am

The date format on the top bar is currently fixed in “template-functions.php” as:

<?php echo date_i18n(esc_html__(‘l, F d, Y’,’purea-magazine’)); ?>

But it is better to use the WordPress date format defined in setting->general, as follows:

<?php echo date_i18n(esc_html__(get_option(‘date_format’),’purea-magazine’)); ?>

In Japanese, ‘l, F d, Y’ date format is not common.

I hope this will be included in the future release.

Replies (1)

  1. tokyojo August 6, 2020 at 4:21 am

    The date format on the top bar is currently fixed in “template-functions.php” as:

    <?php echo date_i18n(esc_html__(‘l, F d, Y’,’purea-magazine’)); ?>

    But it is better to use the WordPress date format defined in setting->general, as follows:

    <?php echo date_i18n(esc_html__(get_option(‘date_format’),’purea-magazine’)); ?>

    In Japanese, ‘l, F d, Y’ date format is not common.

    I hope this will be included in the future release.

  2. Spiracle Themes August 7, 2020 at 1:48 am

    Hi tokyojo,

    Thanks for the suggestion. We will definitely do it.

    Best Regards

Post a Reply

Reply To: date format on top bar
Your information: