theme "leaf". how delete that's
-
how correct delete that’s:
http://s018.radikal.ru/i514/1308/5c/c481e9d70a1e.pngthat is, the date and author. how delete?
file – template-tags.php
/** * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. * * Create your own leaf_entry_meta() to override in a child theme. * * @since Leaf 1.0 */ if ( ! function_exists( 'leaf_entry_meta' ) ) : function leaf_entry_meta() { // Translators: used between list items, there is a space after the comma. $categories_list = get_the_category_list( __( ', ', 'leaf' ) ); // Translators: used between list items, there is a space after the comma. $tag_list = get_the_tag_list( '', __( ', ', 'leaf' ) ); $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date updated" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date('F j, Y') ) ); $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'leaf' ), get_the_author() ) ), get_the_author() ); // Translators: 1 author's name, 2 category, 3 tag's, and 4 is the date. if ( '' != $tag_list ) { $utility_text = __( '<span class="posted-by">Posted by: %1$s </span><span class="spacer">//</span> %2$s <span class="spacer">//</span> %3$s <span class="spacer">//</span> %4$s', 'leaf' ); } elseif ( ! empty( $categories_list ) && leaf_is_categorized_site() ) { $utility_text = __( '<span class="posted-by">Posted by: %1$s </span><span class="spacer">//</span> %2$s <span class="spacer">//</span> %4$s', 'leaf' ); } else { $utility_text = __( '<span class="posted-by">Posted by: %1$s </span> // %4$s', 'leaf' ); } printf( $utility_text, $author, $categories_list, $tag_list, $date ); } endif;
I deleted only:
$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date updated" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date('F j, Y') ) ); $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'leaf' ), get_the_author() ) ), get_the_author() );
but in the end that’s what happened:
http://s16.radikal.ru/i191/1308/e4/47dbad0f4664.pngdo you understand me?) if yes, please, help me.
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘theme "leaf". how delete that's’ is closed to new replies.