How to hide or remove post date or author from GeneratePress theme(s)

Reading Time: < 1 minutes

GeneratePress is one of the best WordPress themes. It’s fast and customizable.

Easiest way to hide post’s dates / author(s) is to add custom css code using WP customizer.

To hide post’s dates, login to WordPress as admin and go to Appearance / Customize / Additional CSS and insert the following css code and save.

time.entry-date.published {display: none}

To hide post’s dates and author, login to WordPress as admin and go to Appearance / Customize / Additional CSS and insert the following css code and save.:

.entry-meta {display:none;}

To remove post’s dates completely, login to WordPress as admin and go to Appearance / Theme Editor. Select functions.php and insert the following php code and save.

add_filter( 'generate_post_date', '__return_false' );
4/5 - (1 vote)
See also  Why WordPress is the best blogging platform

1 thought on “How to hide or remove post date or author from GeneratePress theme(s)”

  1. Really helpful and worked first time! Thank you! Do you have CSS code for removing the copious amounts of space around my logo/navigation in my header? I’d love to consolidate it to only take up a small section at the top of the screen.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.