Support » Fixing WordPress » How to remove author name from posts in twenty eleven?

  • Hi all,

    I need to remove the ‘by author name’ from the top of my posts, I am using twenty-eleven theme, and category pages to display my posts. see example: http://www.heathwoodpress.com/category/discussions

    Is anybody able to advise me on how to do this please? I have searched various forum threads but found nothing which has worked yet.

    Thank you very much in advance.

    P.s. – if anybody knows how to reduce the huge gap between the page (category) description and the page (category) title, and increase the gap below the page (category description) then that would be greatly appreciated too. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • an easy css solution:
    add this to style.css of your child theme:
    .by-author { display: none; }

    slightly more permanent solution by adding this to functions.php of your child theme:
    http://pastebin.com/1G9adyM1

    re: the gap;
    possibly:

    .category-discussions .page-title { margin-bottom: 0em; }

    Oh wow, thank you very much.

    No luck with either of the CSS additions, but I added the code from the pastebin that you posted to my functions.php file in my child theme and it worked a treat for getting rid of the ‘by author’.

    Do you happen to know how to remove the hyperlink from the date at top of the post?

    Thank you very much for your help.

    how to remove the hyperlink from the date at top of the post?

    reduce the ‘twentyeleven_posted_on’ code even more:

    http://pastebin.com/d8ksFxPw
    (untested)

    No luck with either of the CSS additions

    changes to the css often needs the clearing of the browser cache to get to see the results – try pressing ‘CTRL F5’

    Thank you alchymyth, it worked a treat. much appreciate your help.

    Alchymyth, thanks for your contributions to the forum! So often when I’m stuck and run a search I find you there with a shining solution! Much appreciated 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove author name from posts in twenty eleven?’ is closed to new replies.