WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Adding Date to Below Post Title (5 posts)

  1. cms2043
    Member
    Posted 3 years ago #

    Hello,
    I'm having some trouble adding the date to below my post titles.
    My site is demo.thepaisleybox.com

    I've tried to use the code that I found here in the forum including <span class="postDate"><?php the_time('F j, Y'); ?> in <?php the_category(', ') ?></span>
    with no luck.

    Can someone help with the code and placement in order to do this?

    Thank You!
    Colleen

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    tried to use the code

    where in what template?

    with no luck

    what was the result?

    what theme are you using?

    the code could possibly go into index.php and single.php within the loop (?)

  3. cms2043
    Member
    Posted 3 years ago #

    Hi Alchymth,

    I tried to put the code into my stylesheet. It's a custom theme.
    There was not visible change that I could see when I put that code in.

    I pasted the code in several places... pretty much anywhere I found 'entry-title.'

  4. Michael
    Forum Moderator
    Posted 3 years ago #

    tried to put the code into my stylesheet

    stylesheets are for CSS only; templates are for php code.

  5. cms2043
    Member
    Posted 3 years ago #

    Got it. That worked, thank you:)

    Can you also help me out with the code to change the size and color (of the post date)? I want it to be black and 14px.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags