[WordPress][備忘録] テーマの編集 [Simplenotes]

現在使用している Simplenotes はデフォルトの場合、日本語を使用するとタイトルが表示されません。
なので一部、編集する必要があります。
前に編集したのだけど、テーマをアップデートしたら変更箇所が元に戻ってしまったので
備忘録として変更箇所を以下に記載。

やっていることとしては
・hタグを削除して代わりにhtmlで文字サイズを設定
 →hタグが原因で日本語表記されないらしいので。
・文字の色を変更
・リンク文字に下線部を表示させない

変更対象となるテンプレートはindex.phpとsingle.phpです。

■ Simplenotes: メインインデックスのテンプレート (index.php)
○変更前

<h2><a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
○変更後
<body link="#000000" vlink="#000000" alink="#000000"><font size='5'><a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>" style="text-decoration: none"><?php the_title(); ?></a></font></font>

■ implenotes: 単一記事の投稿 (single.php)
○変更前
<h2><?php the_title(); ?></h2>
○変更後
<font size="5"><?php the_title(); ?></font>


以上で設定は完了!

Go to top