WordPress.org

Ready to get started?Download WordPress

Forums

How to remove author name from posts in twenty eleven? (6 posts)

  1. robertbeth
    Member
    Posted 2 years ago #

    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.

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

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

  3. robertbeth
    Member
    Posted 2 years ago #

    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.

  4. alchymyth
    Forum Moderator
    Posted 2 years ago #

    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'

  5. robertbeth
    Member
    Posted 2 years ago #

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

  6. circadiansabotage
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.