• jay.guthrie

    (@jayguthrie)


    I would like to add the author and date to the title of 2015 theme. I see that I need to add this code:

    Author : <?php the_author_posts_link(); ?> , Date : <?php the_time(‘j F, Y ‘) ?>

    But to which template and where in that template do I need to add it? Functions template? single post?

    And, how do I add the HTML or CSS to style it? Can I add this to the code above?

    For example

    <h2> Author: …</h2>

Viewing 1 replies (of 1 total)
  • kjodle

    (@kjodle)

    But to which template and where in that template do I need to add it? Functions template? single post?

    You would add it in the single post template file, I believe. But don’t edit the theme files directly; use a child theme instead.

    And, how do I add the HTML or CSS to style it? Can I add this to the code above?

    The HTML would go in your child theme template file, and the css would go in your child theme stylesheet.

Viewing 1 replies (of 1 total)

The topic ‘Help adding Author and Date to title’ is closed to new replies.