Before this, we published an article about changing the date and time format in WordPress and one of the readers asked how to remove the date in his post. Since he’s using Copyblogger theme, a child theme of Genesis Framework, it’s very easy to do so.
Working with Genesis Framework is quite hard at first, there is learning curve since there are lots of filters and hooks available specially built for Genesis Framework. However, once you’re good with them, it’ll be very handy and you’ll found it to be very powerful.
In Genesis, the post date is located in post info section, located just right after the post title. Besides post date, you’ll see post author and a number of comments in the post info section, as you can see above. Using the right filter and shortcode, it is very easy to customize it. For example, here’s the default code to output the post info in your Genesis child theme:
To remove the post date, simply remove the shortcode reference
[ post_date ] for post date.
This code should be put in
functions.php file of your child theme. For more info on shortcodes available, see the Shortcode Reference page from StudioPress site.
Remove Post Date in Genesis 2.0 and Above (HTML5 Enabled)
Since Genesis 2.0, you’ll be able to add HTML5 support to your site. If you choose to enable HTML5 after upgrading to Genesis 2.0, there will be some changes to loop hooks as you may find in this comparison chart. When HTML5 is enabled, the post info section will be referred to as entry-header. To remove post date in Genesis 2.0 where HTML5 is enabled, you may use the following code: