WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
Remove "Posted by Admin" only. (6 posts)

  1. fast4u
    Member
    Posted 1 year ago #

    Is there a way to just remove the whole posted by: admin. when i use the css code. it only removes the name. i want posted by: admin removed. all together. but the categories and date to be there.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Try these selectors;

    .post footer

    http://www.w3schools.com/cssref/css_selectors.asp

  3. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    @fast4u - You would need to make a child theme and copy over the whole leaf_entry_meta() function into the function.php file of the child theme and do your edits to it. You can find the function here on GitHub between line:120 - 156 and the part you will need to edit is between line:141 - 147.

  4. sethkastner
    Member
    Posted 1 year ago #

    Alternatively you could add

    .posted-by {
    display: none;
    }

    to you custom css. Leaves a spare "//" but works well enough for me.

  5. tizz
    Member
    Posted 1 year ago #

    Nothing wrong with the display none solution, but generally (expecially for the theme), it's better avoid it in favour of code removing directly (in a child theme) to prevent code from being unnecessarily loaded

  6. tizz
    Member
    Posted 1 year ago #

    In addition, edit that function allows you to remove that spare //.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic