Title: Colormag header date format problem
Last modified: November 20, 2016

---

# Colormag header date format problem

 *  [silvanoir](https://wordpress.org/support/users/silvanoir/)
 * (@silvanoir)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/)
 * Hello.
 * Please help!
 * How to change the date format which appears in the header area? Now it looks 
   like this: **Sunday, November 20, 2016.** I need it to look like this: ** Sunday,
   20 November2016**
 * Is there any simple way – without making a child theme etc. to change this in
   code?
 * Thank You for every response 🙂

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

 *  [ThemeSumo](https://wordpress.org/support/users/themesumo/)
 * (@themesumo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8510749)
 * Have you [changed the date format](http://www.mhthemes.com/support/date-time-format-in-wordpress/)
   under the **Settings > General** menu from within your Dashboard?
 * `l, j FY` would create **Sunday, 20 November2016**
 * Hope this helps.
 *  [UPBoetendael](https://wordpress.org/support/users/upboetendael/)
 * (@upboetendael)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8510989)
 * To ThemeSumo: unfortunately the WordPress settings> General date format chosen
   doesn’t change the date format in the theme header area.
    Best regards
 *  [ThemeSumo](https://wordpress.org/support/users/themesumo/)
 * (@themesumo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8511008)
 * Okay, you can modify this date format using a [Child Theme](http://www.mhthemes.com/support/creating-and-using-child-themes-wordpress/),
   add this to the **functions.php** file:
 *     ```
       function colormag_date_display() { ?>
          <div class="date-in-header"><?php 
               echo date_i18n('l, j FY'); ?>
          </div><?php
       }
       ```
   
 * The above function will overide the default function that displays the date in
   the header, hope this helps.
 *  Thread Starter [silvanoir](https://wordpress.org/support/users/silvanoir/)
 * (@silvanoir)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8536005)
 * > Okay, you can modify this date format using a Child Theme, add this to the 
   > functions.php file:
   > function colormag_date_display() { ?>
   >  <div class=”date-in-header”><?php echo
   > date_i18n(‘l, j FY’); ?> </div><?php } The above function will overide the 
   > default function that displays the date in the header, hope this helps.
 * Sorry but this doesn’t help. Where should I place this code directly?
 *  [ThemeSumo](https://wordpress.org/support/users/themesumo/)
 * (@themesumo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8536054)
 * You need to use a [Child Theme](https://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme),
   this way you can use its **functions.php** file to modify a theme function.
 * You can copy/paste the code I gave you above into the file and it should work
   without any issues as I tested it on my own environment.
 * If you modified a theme file directly without using a child theme, you would 
   lose all custom code changes the moment you update the theme in the future. The
   function we’re going to override resides within the `/inc/functions.php` file(
   line 514) of the colormag theme.
 * Hope this helps.
    -  This reply was modified 9 years, 4 months ago by [ThemeSumo](https://wordpress.org/support/users/themesumo/).
      Reason: typo
 *  [eldblath](https://wordpress.org/support/users/eldblath/)
 * (@eldblath)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8619713)
 * **Hello**
 * I have tried the code above ` function colormag_date_display() { ?>
    <div class
   =”date-in-header”><?php echo date_i18n(‘l, j FY’); ?> </div><?php }` on child
   theme. Good. But where can i change the Latest words with something like this:
   Infos : Thank you. Nb: i am on localhost in developping the website.

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

The topic ‘Colormag header date format problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/colormag/4.1.2/screenshot.jpg)
 * ColorMag
 * [Support Threads](https://wordpress.org/support/theme/colormag/)
 * [Active Topics](https://wordpress.org/support/theme/colormag/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/colormag/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/colormag/reviews/)

## Tags

 * [change date](https://wordpress.org/support/topic-tag/change-date/)
 * [date format](https://wordpress.org/support/topic-tag/date-format/)

 * 6 replies
 * 4 participants
 * Last reply from: [eldblath](https://wordpress.org/support/users/eldblath/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/colormag-header-date-format-problem/#post-8619713)
 * Status: not resolved