Forums

[resolved] Author Name on Twenty Eleven Theme (6 posts)

  1. Catalan
    Member
    Posted 5 months ago #

    I apologize if this is a frequently asked question, but the only relevant threads I could find are from two years ago (I tried following instructions there, but with no result). I also apologize if the answer is obvious.

    How do I add the author's name to posts? I'm surprised WordPress doesn't have a built in feature of toggling this (again, I apologize if it does and I just haven't found it).

  2. ChristiNi
    Member
    Posted 5 months ago #

    Hi Catalan,

    The author's name is normally automatically shown for posts in Twenty Eleven (in the single post view). Are you wanting to show the author's name somewhere else?

    Thanks!

  3. govpatel
    Member
    Posted 5 months ago #

    Do you mean add bio of author at bottom of posts if so

    try this on single.php file just before <?php comments_template() ?>).

    <div id="author-bio">
    	<h3>About The Author</h3>
    	<h4><?php the_author(); ?></h4>
           <?php the_author_description(); ?>
    </div><!--end author-bio-->

    to have it working the profile of author needs to be updated.

  4. Catalan
    Member
    Posted 5 months ago #

    Sorry, for some reason I didn't catch that the author name is included at the bottom of the post. How would I add it on the index, in the same place?

    Thank you for the author bio. That wasn't what I was asking for, but it was something I was also interested in including!

  5. ChristiNi
    Member
    Posted 5 months ago #

    Hi Catalan,

    Before making the following change, please make sure you are using a Child Theme so future updates to the theme do not overwrite your changes.

    In Twenty Eleven the style sheet contains the following, which hides the author:

    .single-author .entry-meta .by-author {
    	display: none;
    }

    To unhide the author name on the front page, in your Child Theme Style Sheet add this:

    .single-author .entry-meta .by-author {
    	display: inline;
    }

    Hope this helps!

  6. Catalan
    Member
    Posted 4 months ago #

    Thank you!

Reply

You must log in to post.

About this Topic