Title: Archive  date code
Last modified: August 20, 2016

---

# Archive date code

 *  [lukehimselfnet](https://wordpress.org/support/users/lukehimselfnet/)
 * (@lukehimselfnet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/)
 * Hi,
 * I was wondering how I can make some custom code in my header.php for my Archive
   page.
 * Currently is displays default as:
 * Blog Title – 2012 – December
 * However I would like it to be:
 * Blog Title – December 2012
 * Any help would be appreciated, thanks!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458341)
 * What theme are you using? Where did you download it from?
 *  Thread Starter [lukehimselfnet](https://wordpress.org/support/users/lukehimselfnet/)
 * (@lukehimselfnet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458344)
 * I’m using Theron Lite, installed throw the Dashboard. You can see it at [http://www.lukehimself.net](http://www.lukehimself.net)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458349)
 * I don’t know that theme well myself but you will probably need to by creating
   a [child theme](http://codex.wordpress.org/Child_Themes).
 *  Thread Starter [lukehimselfnet](https://wordpress.org/support/users/lukehimselfnet/)
 * (@lukehimselfnet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458388)
 * Thanks for the reply esmi.
 * The thing is I actually made an archive.php myself, and in my header.php I have
   made the <title> tag myself using
 * <title><?php bloginfo( ‘name’ ); wp_title( ‘-‘, true, ‘left’ ); ?></title>
 * So I thought whatever code I could use would not matter on the theme I’m using?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458389)
 * No – it’s actually completely theme dependant. Are you using a child theme?
 *  Thread Starter [lukehimselfnet](https://wordpress.org/support/users/lukehimselfnet/)
 * (@lukehimselfnet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458393)
 * Ok thanks. No I’m not using a child theme. I had a read through your link. So
   I would create a child theme and then have it refer to code in that child theme?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458395)
 * Once your child theme has been created, installed & activated, any template file
   within the child would be used in preference to the parent’s. So if the parent
   theme already has an archive.php template file (or simply re-used the index.php
   template Loop), the archive.php file in your child theme would take precedence.
 *  Thread Starter [lukehimselfnet](https://wordpress.org/support/users/lukehimselfnet/)
 * (@lukehimselfnet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458398)
 * OK that sounds great, I’ll give it a go as I’ve worked out the title code I need.
 * Thank you heaps for your help, it’s the first time I’ve posted here and you’ve
   replied so quickly and given me great info. I appreciate it!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458400)
 * Glad I could help 🙂

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

The topic ‘Archive date code’ is closed to new replies.

 * 9 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/archive-date-code/#post-3458400)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
