• Resolved tmh12

    (@tmh12)


    Hello! I have tried looking through old forum posts for this. I would like to remove author name “By ____” and also Updated Date on posts.

    I have a child theme. I am now stuck on where I need to go next to access the file I need. I can go to Appearance -> Editor and there is a stylesheet for css and an option for functions.php. Is either of these the right area I need to access? And what do I need to remove/add to fix it?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi tmh12. You’ll need to modify one of the theme files.

    1. Create a /parts folder in your child theme.

    2. Copy the /parts/single-author-date.php file from the parent theme to the /parts folder in your child theme.

    3. Edit the single-author-date.php in your child theme so that it looks like this. You can copy the code here and replace the entire file contents:

    <?php
    /*  Print the post author. Compatible with Google Structured data. Must be used in the WordPress loop
    * @php return html string
    /* ------------------------------------ */
    $published_date = get_the_date( get_option('date_format') );
    ?>
    <p class="post-byline">
        <?php _e('Published', 'hueman'); ?> <time class="published" datetime="<?php echo $published_date; ?>"><?php echo $published_date; ?></time>
    </p>

    Your site should now use the modified file from your child theme.

    Thread Starter tmh12

    (@tmh12)

    Thank you! The support forum here is amazing!!

    You’re welcome; thanks for the compliment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Have Child Theme, Need To Remove Author Name on Posts and Updated Dates’ is closed to new replies.