【TwentyThirteen】タイトル下のユーザー表示を消したい

この投稿はtwentythirteen使ってる人にしか意味がありません。

タイトルの下にタグとか投稿時間とか出てますよね。
一人でブログ書いてるとユーザーとか要りませんよね。
だから消しちゃいましょう。

twentythirteen_entry_meta

これテーマに書いてないんですけどある関数に書いてあります。
その名も
twentythirteen_entry_meta
もちろんこれはfunction.phpの中で書かれています。

この中で表示するデータ引っ張ってきて表示してます。多分。
編集はedit_post_linkって奴でやってるみたいですね。

コード

//twentythirteen_entry_meta
//この関数の最後のほうを消せば消えます。

function twentythirteen_entry_meta() {
	if ( is_sticky() && is_home() && ! is_paged() )
		echo '' . __( 'Sticky', 'twentythirteen' ) . '';

	if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )
		twentythirteen_entry_date();

	// Translators: used between list items, there is a space after the comma.
	$categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) );
	if ( $categories_list ) {
		echo '' . $categories_list . '';
	}

	// Translators: used between list items, there is a space after the comma.
	$tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );
	if ( $tag_list ) {
		echo '' . $tag_list . '';
	}

	// Post author
/* こっから
	if ( 'post' == get_post_type() ) {
		printf( '',
			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
			esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
			get_the_author()
		);
	}
ここまで */
}


これでスッキリしました。めでたしめでたし。

スポンサーリンク

この記事が気に入ったら
フォローしよう

最新情報をお届けします

おすすめの記事