WordPress.org

Forums

Removing Date from twentytwelve Posts (3 posts)

  1. Scott West
    Member
    Posted 2 years ago #

    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

  2. Aaron
    Member
    Posted 2 years ago #

    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;
    }
  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic