Need help? Check out our Support site, then

Changing date format with CSS

  1. For a number of years, with different themes, I've tried unsuccessfully to add the time to my posts' datelines. Yes, under Settings > General I can set a custom dateline -- F j, Y, g:i a T -- and get what I want: April 6, 2012, 2:57 pm MDT. But doing so inevitably causes the dateline in the accompanying comments to repeat the time: April 6, 2012, 2:57 pm MDT 2:57 pm MDT, since comment datelines already include the time by default. I have the CSS upgrade. Is there a way to use CSS to add the time to the post datelines only? I'm using The Morning After theme.

    The blog I need help with is

  2. This process is not exactly "correct" as far as the options are concerned.

    The Date Format should represent items such as the day - month - year while the Time Format should contain the time section.

    Please correct me if I am wrong but it sounds like you are using both values in the Date Format. In The Morning After both the date and time format values are "glued" together to create the datetime that prints with each comment. Unfortunately there is no way to hide one independent of the other.

  3. Yes, I was adding the time values to the Date Format. It was a work around to get the time into datelines for my posts. Except that it fails because it causes the time to be duplicated in the comments.

    I'm wondering if there is a way with CSS to add the time to the default dateline for posts. I don't know enough CSS to figure it out for myself.

  4. Unfortunately CSS was not really designed to do something like this.

  5. Okay, thanks. I guess I can cross that off my wish list.

Topic Closed

This topic has been closed to new replies.

About this Topic