• Resolved petemcal

    (@petemcal)


    I am using the hatch free theme from wordpress. I want to get rid of the author and date byline from all posts. I tried using plug ins but they did not give me the results I wanted.

    I used remove author and remove date plug ins. But this only removed the date. And left the site looking like this:

    Date:
    Author: admin

    I do not know what code to delete or adjust to stop the “date:” and “author:” sections along with the date and author imprint displaying.

    Can anyone help me out? If it helps an example of a post on my site can be found here: https://becomeselfemployed.co.uk/freelance-writing-jobs-uk/ (the site is literally just up and in development)

    Thank you so much! Pete

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter petemcal

    (@petemcal)

    Update I have figured this out.

    For other people’s reference who want to remove the author, date, category etc you remove the lines of code that look like this:

    <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-published before="Date: "]', 'hatch' ) . '</div>' ); ?>
    
    								<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-author before="Author: "]', 'hatch' ) . '</div>' ); ?>

    This code can be found in the post.php file in the wp-content/themes/hatch folder.

    Before you start editing. It is advisable to create child theme first. To remove date from your wordpress index page, you need to edit your Themes index.php file, search for the date function and the author function and delete it [Or comment this function]. You can follow the steps given at this link https://bornvirtual.com/wordpress/remove-date-from-wordpress-post/926/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I make the author and date not visible on all posts’ is closed to new replies.