Twenty Twelve | How to Remove "Leave a reply" under the post title

Twenty Twelve in 1.1

Introducing the way to remove "Leave a reply" which will take you to comment area by clicking.

This is referred in content.php. so you should copy it into child theme directory and just comment out div element with [class="comments-link"]
[php]
<?php if(0){ // comment-out ?>
<?php if ( comments_open() ) : ?>
<div class="comments-link">
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
</div><!-- .comments-link -->
<?php endif; // comments_open() ?>
<?php } // comment-out ?>
[/php]

  • このエントリーをはてなブックマークに追加

関連記事

(日本語) Twenty Fourteen カスタマイズ

Sorry, this entry is only available in 日本語.

(日本語) 「Google Analytics for WordPress」投稿URLにやたら長いパラメータがついてしまう

Sorry, this entry is only available in 日本語.

(日本語) Tumblrの投稿をウィジェットに表示できる「Tumblr Widget」

Sorry, this entry is only available in 日本語.

(日本語) 独自のCSSやJSを読み込む

Sorry, this entry is only available in 日本語.

(日本語) Twenty Twelve カスタマイズ

Sorry, this entry is only available in 日本語.

(日本語) 「カテゴリー」ウィジェット カスタマイズ

Sorry, this entry is only available in 日本語.

no image

(日本語) 投稿タイトル(entry-title)を非表示にする

Sorry, this entry is only available in 日本語.

(日本語) ie.cssの子テーマ化など Twenty Twelve 1.1での変更点

Sorry, this entry is only available in 日本語.

(日本語) Twitterのツイートボタンの設置

Sorry, this entry is only available in 日本語.

(日本語) Twenty Fourteen 「投稿者」を非表示

Sorry, this entry is only available in 日本語.

Comment

Message

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PAGE TOP ↑