Add Date in Header Under Title

Community Forums Forums General Discussion Add Date in Header Under Title

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Tony @ AlphaBlossom 1 year, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19751

    BennettGlobal
    Participant
    Post count: 16

    I am using Genesis with the Magazine child theme.  I want to have the current date always displayed directly under the title, but before my secondary navigation bar.  My site is http://www.bgemagazine.com.  I want it centered just like the title, but in a smaller font.  I did not use the tagline so there’s plenty of room.

    Thank you in advance for helping a novice.

    Michael

    #19757

    Tony @ AlphaBlossom
    Participant
    Post count: 357

    Hi,

    You can add this to your child-theme functions.php:

    [ Sorry, keeps stripping out part of my code.

    Here's a pastebin link

    ]

    Then in your child-theme style.css, you can add:


    #header .my-date-class {
    text-align: center;
    }

    Here you can also style your color, margins, etc.

    The time format is controlled in your admin panel under settings.

    Have a good night!


    Tony Eppright | http://www.AlphaBlossom.com | @_alphablossom

    #19759

    Tony @ AlphaBlossom
    Participant
    Post count: 357

    Duplicate


    Tony Eppright | http://www.AlphaBlossom.com | @_alphablossom

    #19937

    BennettGlobal
    Participant
    Post count: 16

    Tony,

    Thank you very much.  This is great.  I made the change in about a minute.

    Can’t thank you enough.

    Michael

    #19958

    Tony @ AlphaBlossom
    Participant
    Post count: 357

    My pleasure, Michael!


    Tony Eppright | http://www.AlphaBlossom.com | @_alphablossom

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.