adding authors / written by on WP Pages (6 posts)

  1. wwallace1
    Posted 1 year ago #


    I have around 50 pages on my wordpress site where I have been writing articles. However the pages do not show "written by (author"

    How can I add this?

    Thank you

  2. Christiaan Conover
    Posted 1 year ago #

    That has to be done within the theme. What theme are you using?

  3. wwallace1
    Posted 1 year ago #

    I am using the Celestial Lite theme


    Any help would be appreciated!

  4. Christiaan Conover
    Posted 1 year ago #

    You'll need to create a child theme to start with, so that any changes you make aren't lost the next time Celestial Lite is updated.

    Once you have the child theme activated, copy the partials directory from the parent theme to the child theme, and open the file /partials/content-page.php. Find the line that says:

    <h1 class="entry-title"><?php the_title(); ?></h1>

    Right below it, inside the <header> section, put the following line:

    <div class="entry-meta">
    	<span class="entry-author"><?php printf( __( 'Author: ', 'celestial' ) );	the_author_link(); ?></span>
    </div><!-- .entry-meta -->
  5. wwallace1
    Posted 1 year ago #

    What do you mean a child theme? should I change it to Twenty Twelve and then edit the celestial theme?

  6. Christiaan Conover
    Posted 1 year ago #

    A child theme is a theme that modifies another theme. This allows you to customize a theme from the Theme Directory without running the risk of losing your changes when the original theme is updated. Take a look at this Codex article to learn more about it.

    So, if you follow the instructions in that Codex article, you can make changes to the Celestial Lite theme without modifying the theme itself. That's the recommended method.

Topic Closed

This topic has been closed to new replies.

About this Topic