WordPress.org

Support

Support » How-To and Troubleshooting » Removing Date from twentytwelve Posts

Removing Date from twentytwelve Posts

  • Good Afternoon WP Pros,

    I’m at best an intermediate wp enthusiast working with twentytwelve. I’m trying to remove the date from the posts and am only able to do so though the themes/twentytwelve/function.php and not the proper way using my child themes function. Are there conditional tags, coding or a better way of achieving my goal?

    if ( $tag_list ) {
    		$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );

    Thanks for any help,

    Scott

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do it with CSS. Add/edit the below in style.css or your child theme and it will hide the date.

    .entry-date {
    display: none;
    }
    Michael
    Forum Moderator

    @alchymyth

    the function twentytwelve_entry_meta() is ‘pluggable’ i.e. you can reuse the same function name in functions.php of the child theme, and re-write the code inside the function.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing Date from twentytwelve Posts’ is closed to new replies.