Warning: Undefined array key "cperpage" in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 134

Warning: Undefined variable $output in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 204

Warning: Undefined variable $fixed_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 205

Warning: Undefined variable $showfullstop in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 206

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 209

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 212

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 215

Warning: Undefined variable $post in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Attempt to read property "ID" on null in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Undefined variable $post in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Attempt to read property "ID" on null in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Undefined variable $m_link_title in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224
[WordPress]記事タイトルの表示順番の変更方法 | じゃみじゃみ.net
じゃみじゃみ.net

デフォルトでは記事タイトルは以下のように表示されます。


じゃみじゃみ.net >> [WordPress]記事タイトルの表示順番の変更方法


SEO的に [ブログタイトル] >> [記事タイトル] の順番よりも [記事タイトル] >> [ブログタイトル] の順番の方がよいとされています。
header.php のタイトルタグの順番を入れ替えるだけではうまく表示されません。


【変更前】
<?php bloginfo('name'); ?><?php wp_title(); ?> → [ブログタイトル] >> [記事タイトル]

【変更後】
<?php wp_title(); ?><?php bloginfo('name'); ?> → >> [記事タイトル] [ブログタイトル]


自体が記事タイトル表示直前に「>>」を付け加えてしまうためにうまく変更ができないのです。
タイトルタグ内で色々いじってもOKですが、プラグインを使用して楽に変更させる方法があります。


【プラグイン】
Title Suffix


【設定方法】
上記リンクよりプラグインをダウンロード。
Zipファイルを解凍して、【/wp-content/plugins】にアップロード。
「>>」の変わりに「 – 」を使用しているみたいなので、ダウンロードしてきたファイルの13行目を変更。(ここはお好みで)


後はプラグイン管理から Title Suffix を使用するようにすれば設定完了です。




トラックバック

コメントをどうぞ


Warning: Undefined variable $user_ID in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/comments.php on line 83

Proudly powered by WordPress. EureKa theme designer denied.
Copyright © じゃみじゃみ.net. All rights reserved. Theme Provided By Web Resources