>--> Blogger ブログのページタイトルを「投稿タイトル | ブログタイトル」の順にする方法 | クリボウの Blogger Tips

クリボウの Blogger Tips

Google Blogger の使い方、カスタマイズ方法、各種ツールなど、
Blogger 関連の役立つ情報を紹介しています。

> | | > Blogger ブログのページタイトルを「投稿タイトル | ブログタイトル」の順にする方法

Blogger ブログのページタイトルを「投稿タイトル | ブログタイトル」の順にする方法

(画像は実験中のもの)

Blogger のブログの投稿単独のページは、
クリボウの Blogger Tips: Blogger の「スライドショーガジェット」の画像表示サイズを大きくする方法
のように、通常「ブログタイトル: 投稿タイトル」という順番でページタイトルがつけられています。

が、テンプレートをカスタマイズすることで、これを
Blogger の「スライドショーガジェット」の画像表示サイズを大きくする方法 | クリボウの Blogger Tips
のように「投稿タイトル | ブログタイトル」の順に変更することが可能です。

今回区切り文字に | を選んだのは、Blogger のダイナミックビューで、ページタイトルが「投稿タイトル | ブログタイトル」となっているので、それに合わせたもの。


手順

1.ブログの管理画面「テンプレート > HMTL の編集」(旧インターフェースでは「デザイン > HMTL の編集」)を開く。

2.次のコードを見つける。(ブラウザの検索機能を使うと便利です。)
<title><data:blog.pageTitle/></title>

3.見つけたコードを次のものに書き換える。
<b:if cond='data:blog.pageType == &quot;item&quot;'>
  <title><data:blog.pageName/> | <data:blog.title/></title>
<b:else/>
  <title><data:blog.pageTitle/></title>
</b:if>

4.「テンプレートを保存」ボタンを押す。

これだけです。


備考

静的ページ(Blogger のいわゆる「ページ」)も同様にページタイトルを変更したい場合には、3のコードを
<b:if cond='data:blog.pageType == &quot;item&quot;'>
  <title><data:blog.pageName/> | <data:blog.title/></title>
<b:else/>
  <b:if cond='data:blog.pageType == &quot;static_page&quot;'>
    <title><data:blog.pageName/> | <data:blog.title/></title>
  <b:else/>
    <title><data:blog.pageTitle/></title>
  </b:if>
</b:if>
にします。

もちろん、投稿タイトルとブログタイトルの間の区切り文字は、違うものでも構いません。別のものにしたい人は、3のコードの赤字部分を差し替えてみてください。


スポンサードリンク:
お願い:
「この記事役に立った!」と思ったら、ぜひフィード登録をお願いします。 

Comments:22

  1. 投稿タイトルがうまく扱えなくて苦労しています。よく読んでやってみます!!!

    ReplyDelete
  2. 初めまして、そりのこしと申します!
    最近Blogを始めたのですが、わからないことだらけです。
    色々な方のBlogを読んで勉強させて頂いてますが、クリボウさんのBlogは本当に勉強になります。
    Blog見て頂けたら嬉しいです!是非、ご指導お願いします!

    ReplyDelete
  3. 丁度気になっていたので、この記事を参考に変更させて頂きました。
    有難う御座いました。(^^)

    ReplyDelete
  4. 参考になりました。
    ありがとうございます。

    ReplyDelete
  5. Bonus Gratis melalui Dealer Poker Uang Asli Volgograd Region Capital Situs www.rusiapoker.us Melalui BPD Sumut Syariah Kode Bank 117.

    ReplyDelete
  6. Furthermore, the tool has an intricate constant scanning functionality that works in full force when the user is accessing internet. office.com/setup | norton.com/setup | norton.com/setup | norton.com/setup

    ReplyDelete
  7. I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

    norton.com/setup

    norton.com/setup

    norton.com/setup

    roadrunner email

    mcafee.com/activate

    aol mail

    ReplyDelete
  8. I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

    norton.com/setup

    norton.com/setup

    norton.com/setup

    office.com/setup

    roadrunner email

    mcafee.com/activate

    aol mail

    ReplyDelete
  9. mcafee.com/activate - Get real-time protection with McAfee by finding steps to download, install, and activate McAfee antivirus via www.mcafee.com/activate. For more information visit my website or call our customer support number for instant support.
    norton.com/setup - Get started Norton Setup with Product Key at norton.com/setup or call us toll-free number for instant support. We'll help to install Norton from www.norton.com/setup. For more information just visit our website.

    ReplyDelete
  10. Get Easy Assistance for Canon IJ Setup with us
    If you are looking out for the best assistance with Canon IJSetup with us. We at are available for for your assistance with a round the clock availability. You can reach out to us with any issues relating to your Canon Driver Support and our team will provide you the best assistance with its installation and usage.you can call toll free number +1-888-845-6052.

    ReplyDelete
  11. Get Easy Assistance for Canon IJ Setup with us
    If you are looking out for the best assistance withCanon IJSetup with us. We at are available for for your assistance with a round the clock availability. You can reach out to us with any issues relating to your Canon Driver Support and our team will provide you the best assistance with its installation and usage.you can call toll free number +1-888-845-6052.

    ReplyDelete
  12. If you are facing any type of problem related to Antivirus, then we are providing services to secure your PC. For any further update or any query you can use norton.com/setup with product key or you can contact our experts on the toll-free number +1-888-845-6052.

    ReplyDelete
  13. If you are facing any type of problem related to Antivirus, then we are providing services to secure your PC. For any further update or any query you can use norton.com/setup with product key or you can contact our experts on the toll-free number +1-888-845-6052.

    ReplyDelete
  14. It is wonderful post, i'm very affected of your post. Its very helpful. thanks for sharing this blog.
    @:-Norton.com/setup @:-Office.com/setup @:-Mcafee.com/activate .

    ReplyDelete
  15. It is a beautiful post, I'm very affected by your post. it's extremely useful. thanks for sharing this article.
    @:- McAfee.com/Activate @:- Norton.com/setup @:- McAfee.com/Activate @:- Office.com/setup

    ReplyDelete
  16. Accounting is the most critical process of every organization. Therefore, numbers of them utilize QuickBooks to efficiently handle all the processes from managing payrolls to transferring salary. All of this is possible only through the faster and responsive error support team available on QuickBooks Error Support QuickBooks is reducing the organizational hassle software is recognized as one of the leading accounting software around the world
    QuickBooks Support Phone Number

    ReplyDelete
  17. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job
    Office.com/Setup

    ReplyDelete
  18. When i read this kind of content it makes me feel like inspiring to write more informative for technology and computer antivirus which can help people easily.
    norton.com/setup |norton.com/setup

    ReplyDelete
  19. You can follow the steps mentioned below to install McAfee Total Protection on your devices:-
    In the first step, you have to click on the “Download” folder.
    Now, you have to double click on “McAfee Antivirus” file to access the software.
    You can now click on the setup or run the McAfee software depending upon the browser you use.
    McAfee activate process is now initiated.
    mcafee.com/activate will now ask for the McAfee Activation product key.
    You have to click on “Next” and follow instructions given on-screen.
    After you complete all the on-screen instructions, the installation process will be finished.
    The installation step can take some time, which completely depends upon the working speed of your computer, so be patient.
    Once the process to download and activate gets completed you then pursue further for the activation process.
    mcafee.com/activate

    ReplyDelete
  20. mcafee.com/activate given the best experience to save my pc from harm have a look:
    mcafee.com/activate | mcafee.com/activate

    ReplyDelete
  21. i know, but thanks for bringing my attention to this. runtime availability is of course even more easily
    accessible than literals only appearing in the AST. but this also makes the gap between significant
    comments and annotations even more apparent: one has language support and is available during runtime
    the other isn’t even available to the interpreter after parsing.

    Office.com/setup

    ReplyDelete

Comments on Google+:

© 2005-2014 Kuribo. Powered by Blogger.