• 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)
  • What theme are you using? Where did you download it from?

    Thread Starter lukehimselfnet

    (@lukehimselfnet)

    I’m using Theron Lite, installed throw the Dashboard. You can see it at http://www.lukehimself.net

    I don’t know that theme well myself but you will probably need to by creating a child theme.

    Thread Starter lukehimselfnet

    (@lukehimselfnet)

    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?

    No – it’s actually completely theme dependant. Are you using a child theme?

    Thread Starter lukehimselfnet

    (@lukehimselfnet)

    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?

    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

    (@lukehimselfnet)

    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!

    Glad I could help 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Archive date code’ is closed to new replies.