WordPress.org

Ready to get started?Download WordPress

Forums

Author not displayed on posts in twenty eleven (11 posts)

  1. sethsegall
    Member
    Posted 2 years ago #

    I just switched from twenty ten to twenty eleven, and it no longer lists the author under posts. How can I correct this?

  2. lolaludesign
    Member
    Posted 2 years ago #

    I want to know, too!

  3. c4gamerz
    Member
    Posted 2 years ago #

  4. sethsegall
    Member
    Posted 2 years ago #

    Did it. Didn't work.

  5. c4gamerz
    Member
    Posted 2 years ago #

    Can you post single.php code here?

  6. sethsegall
    Member
    Posted 2 years ago #

    [code moderated - please read http://codex.wordpress.org/Forum_Welcome#Posting_Code for future posting of code]

  7. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

  8. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    Twenty Eleven does show the author in the 'posted on ..' line by default;
    and it is in the html code of your front page; for example:
    <span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://www.existentialbuddhist.com/author/sethsegall/" title="View all posts by Seth Segall" rel="author">Seth Segall</a></span>

    something in style.css must be hiding it;

    this line:

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

    this is a (debatable) 'feature' of Twenty Eleven - not to show author info if the whole site is only posted by one author.

    in your child theme's style.css, add:

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

    if you don't have a child theme, edit style.css and either remove these lines or change from 'none' to 'inline';

    however:
    it is really recommended to use a child theme of the (default) theme Twenty Eleven;
    a: to avoid that the modifications are overwritten with the next upgrade of your wordpress version;
    b: to have a 'fall-back' theme if you have any major problems with themes in your installation.

  9. SteveEBoy
    Member
    Posted 2 years ago #

    @alchymyth - thanks very much for that solution and explanation, worked perfectly. I'm new to WP and the 2011 theme. this helped a lot

  10. rlevy2
    Member
    Posted 2 years ago #

    This solution added the author name to the bottom of the post, but I'd like it at the top with the date. Any solution for that?

  11. Stoob
    Member
    Posted 2 years ago #

    Editing the style.css file at approximately line 747 solves the issue where it says: .single-author .entry-meta .by-author

    Delete the line that says - display: none;

Topic Closed

This topic has been closed to new replies.

About this Topic