Title: Twenty Twelve の entry-title を h1 から h2　に変更できない
Last modified: 2013年5月19日

---

# Twenty Twelve の entry-title を h1 から h2　に変更できない

 *  解決済 [sato_ru](https://ja.wordpress.org/support/users/sato_ru/)
 * (@sato_ru)
 * [13年、 5ヶ月前](https://ja.wordpress.org/support/topic/twenty-twelve-%e3%81%ae-entry-title-%e3%82%92-h1-%e3%81%8b%e3%82%89-h2%e3%80%80%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/)
 * Twenty Twelve.1.1 で、固定ページで作成しますと、h1 が site-title と entry-title
   の２つになってしまうため、entry-title を h2 に変更しようと次のように修正しました
   が、うまくできません。どなたかご教示頂けますでしょうか？
 * index.php 38行目から
 *     ```
       <h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>
   
       ↓下記へ修正
   
       <h2 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h2>
       ```
   
 * index.php 49行目から
 *     ```
       <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
       ↓
       <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h2>
       ```
   
 * content.php　21行目から
 *     ```
       h1 class="entry-title"><?php the_title(); ?></h1>
       			<?php else : ?>
       			<h1 class="entry-title">
       				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
       			</h1>
   
       ↓
   
       <h2 class="entry-title"><?php the_title(); ?></h2>
       			<?php else : ?>
       			<h2 class="entry-title">
       				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
       			</h2>
       ```
   
 * 以上の他は修正しておりません。
    よろしくお願いします。

2件の返信を表示中 - 1 - 2件目 (全2件中)

 *  [nekomimiTaicho](https://ja.wordpress.org/support/users/nekomimitaicho/)
 * (@nekomimitaicho)
 * [13年、 5ヶ月前](https://ja.wordpress.org/support/topic/twenty-twelve-%e3%81%ae-entry-title-%e3%82%92-h1-%e3%81%8b%e3%82%89-h2%e3%80%80%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/#post-161284)
 * Twenty Twelveは、HTML5で書いてあると思うので、それぞれのセクショニングコンテンツ
   の大見出しとしてh1になってると思うんですが、何か不都合があるのでしょうか？
 * それはそれとして、
    固定ページだと、content-page.phpを直すとなおると思います。
 *  トピック投稿者 [sato_ru](https://ja.wordpress.org/support/users/sato_ru/)
 * (@sato_ru)
 * [13年、 5ヶ月前](https://ja.wordpress.org/support/topic/twenty-twelve-%e3%81%ae-entry-title-%e3%82%92-h1-%e3%81%8b%e3%82%89-h2%e3%80%80%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/#post-161285)
 * ご回答ありがとうございます。
    content-page.php の修正でできました。
 * h1→h2に変更したかった理由は、SEO対策のためです。Googleのアルゴリズムに、1ページ
   あたりh1 は1つが有利というものがあるため修正したかったのです。
 * どうもありがとうございました。

2件の返信を表示中 - 1 - 2件目 (全2件中)

 トピック「Twenty Twelve の entry-title を h1 から h2　に変更できない」には新たに
返信することはできません。

## タグ

 * [タグ](https://ja.wordpress.org/support/topic-tag/%e3%82%bf%e3%82%b0/)
 * [entry-title](https://ja.wordpress.org/support/topic-tag/entry-title/)
 * [h1からh2](https://ja.wordpress.org/support/topic-tag/h1%e3%81%8b%e3%82%89h2/)
 * [変更](https://ja.wordpress.org/support/topic-tag/%e5%a4%89%e6%9b%b4/)

 * フォーラム: [テーマ](https://ja.wordpress.org/support/forum/themes/)
 * 2件の返信
 * 2人の参加者
 * 最後の返信者: [sato_ru](https://ja.wordpress.org/support/users/sato_ru/)
 * 最後の活動: [13年、 5ヶ月前](https://ja.wordpress.org/support/topic/twenty-twelve-%e3%81%ae-entry-title-%e3%82%92-h1-%e3%81%8b%e3%82%89-h2%e3%80%80%e3%81%ab%e5%a4%89%e6%9b%b4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/#post-161285)
 * 状態: 解決済

## トピック

### 人気のトピック

### 返信がないトピック

### サポート関連ではないトピック

### 解決済みのトピック

### 未解決のトピック

### すべてのトピック
