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.

Format post byline: date & author (4 posts)

  1. Sally Oh
    Posted 7 years ago #

    I inserted this bit of code in my main page and single post page:

    <small><?php the_time('j F Y') ?> by <?php the_author() ?></small>

    right after the post title. But I can't figure out how to format it. It comes out in times when everything else comes out in verdana (as it should.)

    I tried to adding <font-family: verdana> after the <small> (and closed it up on the other end) but nothing changed. Any suggestions? I can't find any reference in the css sheet...

    Thank you!
    Sign me: Stumped & Clueless

  2. Phil-ip
    Posted 7 years ago #

    Hi Miravacas

    Could you link to your homepage that way it will be a lot easier to look through you code and help you.

    Have you tried to create a new style in the stylesheet.
    I had the same problem with my date as well. But I sorted it out by creating a new style in the stylesheet. Have a look here: Update: New date format.

    Good luck

  3. Sally Oh
    Posted 7 years ago #

    Hi Phil,
    The site is http://www.auctionrealestatecompany.com. I did not create a new style, I've never done that before. I was able to make it italic (removed that) with regular html... why can't I change the font? It's buggin' me!

    Thank you,

  4. Phil-ip
    Posted 7 years ago #

    Hi Mira
    Your problem is that the date is inside the class=post, which is probably set to font-type=Times New Roman.

    I suggest that you create a new date style like I showed on my page and then wrap it around the date:
    <div class=date><small> Your Date PHP tag here </small></div>

    I hope this helps you.

    Merry Christmas =)

Topic Closed

This topic has been closed to new replies.

About this Topic