WordPress.org

Ready to get started?Download WordPress

Forums

Ilisa
Remove post author (5 posts)

  1. jillacox
    Member
    Posted 1 year ago #

    Still love this theme, just working on a few minor changes.

    Below the post title there's a line that says "By Author's Name on June 9th, x comments."

    How can I delete the "By Author's Name" portion of that line. It's a bit redundant for my blog. I tried to play around on my own but no luck.

    Thanks.

  2. David A. Kennedy
    Member
    Posted 1 year ago #

    Hi jillacox,

    This may not get this in all places in your theme, but I think it will after a quick glance at your theme files.

    Open the file called content.php in your theme folder.
    Find the line with this: <?php printf( __( 'by', 'ilisa' )); ?> <?php the_author(); ?> and delete that.
    Next to it, you'll see a line with this: <?php printf( __( 'on', 'ilisa' )); ?>
    Change it to: <?php printf( __( 'Posted on', 'ilisa' )); ?>

    That should take away your byline, and make it say "Posted on [date here].

    It's a good idea to make sure your theme files are backed up before editing. Also, edit them using a text editor, not in the Theme Editor within WordPress. That way, if you have issues, you can always go back to the previous version. :)

    Let me know if you have questions!

  3. jillacox
    Member
    Posted 1 year ago #

    Hi David,

    Thank you. That worked!

    Ideally I'd like for that top line to just be the date. Can you tell me how to move the comments to the bottom of the post? Above the line for categories, if possible.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    This kind of modification should be done in a Child Theme - so that your changes are not lost when the theme is updated...

    http://codex.wordpress.org/Child_Themes

  5. David A. Kennedy
    Member
    Posted 1 year ago #

    Yogi is right. Child themes are they way to go here because if your parent theme gets updated, you won't lose these changes. If you want to go that route:

    1. Make the style.css file (as outlined in the link above) in a folder called ilisa-child-theme.
    2. Copy your content.php file (the one with the changes you made) and place it in that folder.
    3. Upload that folder to your themes directory.
    4. You should now see it in your Themes menu in the WordPress Admin.
    5. Activate it, and you should be good.

    If you want to make changes where just your date shows, you should be able to just delete the line: <?php printf( __( 'Posted on', 'ilisa' )); ?>

    From what I remember from the theme files, that should work. Remember to back up your files! :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.