• 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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!

    Thread Starter jillacox

    (@jillacox)

    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.

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

    https://codex.www.ads-software.com/Child_Themes

    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! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove post author’ is closed to new replies.