• hello! I’m starting up a travel blog and I’m very curious as to how i can remove certain information on a post, such as “posted on x date” and also “posted in category y”.
    how i can change this, remove it, and/or manipulate it? thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello.
    Look for a call to the entry_meta(); function in content.php (depending on theme, you may have to look in an adjacent file– see this template hierarchy chart ).

    Entry meta such as date of post and categories in the Twentyfifteen theme are called from its content.php file, and looks like this:

    <footer class="entry-footer">
    <?php twentyfifteen_entry_meta(); ?>
    </footer>

    So, to remove, we may simply comment out the code, like this:
    <?php //twentyfifteen_entry_meta(); ?>

    Now the call to the twentyfifteen_entry_meta(); function will be skipped, and no post meta data will display in the front end.

    Good luck!

    Just be aware that if you edit the theme files directly, you’ll lose those changes if the theme is updated in the future, to fix security issues or bugs or to add new features. Instead, you should make a child theme, copy the appropriate file to the child theme’s folder, and then edit that file instead.

    Thread Starter JCBuenoo

    (@jcbuenoo)

    what if its in CSS?

    what if its in CSS?

    I’m sorry, but I’m not sure what you mean. Did you use CSS to hide the meta information?

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