Support » Fixing WordPress » adding authors / written by on WP Pages

  • Hi,

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • That has to be done within the theme. What theme are you using?

    I am using the Celestial Lite theme

    Celestial – Lite

    Any help would be appreciated!

    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 -->

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

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adding authors / written by on WP Pages’ is closed to new replies.