Forums

[resolved] Author name doesn't show underneath the post title (3 posts)

  1. marom
    Member
    Posted 2 years ago #

    I'm using the Evanescence 1.6 theme (see http://www.quantmleap.com).

    It is probably a feature of the theme, but the author name does not show underneath the post title.

    I've been searching for the following (<?php the_time('F jS, Y') ?> by <?php the_author() ?>), as suggested in another query on this forum, but couldn't find in the in index.php.

    My index.php shows the following:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Can someone please advise how if and how I can change the code so it shows the author name?

    Thanks, Shim.

  2. vtxyzzy
    Member
    Posted 2 years ago #

    The author name does show up following the post. To also put it under the title, change this:

    <div class="post-title"><div>
             <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
          </div></div>

    to this:

    <div class="post-title"><div>
             <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
          </div></div>
          <div>Author: <?php the_author(); ?></div>

    To be consistent, you will need to make similar changes in index.php, archive.php, page.php, and single.php.

  3. marom
    Member
    Posted 1 year ago #

    Thanks vtxyzzy, working just fine now. Much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic