Twenty Twelve の entry-title を h1 から h2 に変更できない
-
Twenty Twelve.1.1 で、固定ページで作成しますと、h1 が site-title と entry-title の2つになってしまうため、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件中)
2件の返信を表示中 - 1 - 2件目 (全2件中)
- トピック「Twenty Twelve の entry-title を h1 から h2 に変更できない」には新たに返信することはできません。