WordPress.org

Forums

[resolved] How do I make the author and date not visible on all posts (3 posts)

  1. petemcal
    Member
    Posted 3 years ago #

    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: http://becomeselfemployed.co.uk/freelance-writing-jobs-uk/ (the site is literally just up and in development)

    Thank you so much! Pete

  2. petemcal
    Member
    Posted 3 years ago #

    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.

  3. Mohammed Mazhar
    Member
    Posted 2 years ago #

    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 http://bornvirtual.com/wordpress/remove-date-from-wordpress-post/926/

Topic Closed

This topic has been closed to new replies.

About this Topic