カテゴリーアーカイブの「続きを読む」を「『タイトル』の続きを読む」
-
いつもお世話になっております。
twentytenの子テーマで運用中ですが、カテゴリーアーカイブで表示される「抜粋」の末尾につけられる「続きを読む →」を「○○の続きを読む →」に変更しようとして、
twentytenのloop.phpの<?php /* How to display all other posts. */ ?> ・・・(中略)・・・ <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content -->
の、
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) );
を、
<?php echo '<a href="'. get_permalink() . '">「' . get_the_title(). '」の続きを読む <span>→</span></a>'; ?>
としてみましたが、変化がありません。また、一部の情報には、functions.phpで、親ページの、
function twentyten_continue_reading_link()
を子テーマで上書きする方法で、function twentyten_continue_reading_link() { return '<a href="'. get_permalink() . '">「' . get_the_title(). '」の続きを読む <span>→</span></a>'; }
などとして子テーマのfunctions.phpに追加したところ、全てがエラー表示になってビックリしてしまいました。
解決方法があればどうかご教示ください。よろしくお願いします。
2件の返信を表示中 - 1 - 2件目 (全2件中)
2件の返信を表示中 - 1 - 2件目 (全2件中)
- トピック「カテゴリーアーカイブの「続きを読む」を「『タイトル』の続きを読む」」には新たに返信することはできません。