>--> Blogger にも「続きを読む」機能、その2 | クリボウの Blogger Tips

クリボウの Blogger Tips

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

> Blogger にも「続きを読む」機能、その2

Blogger にも「続きを読む」機能、その2

Posted at: 2006-03-14 14

先日、Blogger にも「続きを読む」機能という記事を書きました。クリボウの記事を読んで導入された方から多く出されたのは、「つねに続きを読むリンクが出るんですね」という声。そうなんです、先日紹介した方法だと投稿内容の長短に関わらず、必ず「続きを読む」リンクが表示されるのです。

「続きを読む」機能は、Blogger のコンディショナルタグを使い、トップページ(アーカイブページも)と記事単独ページのスタイルシートとを書き分けることで、記事の表示される内容(の見た目)を変化させています。


Blogger 管理画面「テンプレート」から、テンプレート head 要素内(<head></head> の間)に、次のコードを貼り付けます。貼り付ける位置は </head> の直前がいいと思います。テンプレート編集後には、ブログを再構築します。
<style type="text/css">
  div.fullpost {
    display: none;
  div.readmore {
    display: block;
  div.fullpost {
    display: block;
  div.readmore {
    display: none;


投稿本文中の、トップやアーカイブページで省略したい部分を <div class="fullpost"></div> ではさみます。
「続きを読む」リンクは <div class="readmore"></div> ではさんで投稿してください。投稿する本文は下のようになると思います。
<div class="fullpost">
<div class="readmore">
  <a href="この投稿自体の URL">[続きを読む]</a>
リンクする URL は、記事を一度投稿して、記事の URL を確かめてからあらためて書き入れるのが一番確実です。記事投稿時点で、記事単独ページの URL を予想して書き入れる場合には、投稿のタイトルと URL の関係を参考にしてください。

前項の fullpost および readmore クラスの div 要素を使わずに、普通に投稿すれば全文が表示されます。


参考:PrestonCafe: Blogger.comで追記のあるものだけMore...と表示する方法



  1. Freebet Judi dengan Bandar Capsa Saransk Region Capital Rusia Situs www.pokerusia.org Melalui Citibank Indonesia Kode Bank 031.

  2. This is a topic that's near to my heart... Thank you for your post
    clipping path

  3. I am an academic assignment services provider and Academic Write, associated with sampleassignment.com since the decade. Sample Assignment is leading plagiarism free assignment help Brisbane Australia, UK, USA. We provide online conflict online assignment help customized assignment help service. We are leading the market for more than a decade now and have acquired the name of being the best academic help service for our comprehensive services at pocket-friendly rates online supply chain online assignment help and We also serve our Service to those who search assignment help Perth.

  4. Hey! Thank you for providing us with such an informational blog. This is indeed helpful. My Assignment Services also assists students who struggle to complete their assessments on time. Our Catia assignment help is a unique academic service designed specially for those who are studying this unit. We have a whole team of certified Catia assignment writers who have been using the CATIA CAD software since it was first launched. These experts are also well-versed with other CAD software such as STATA, AutoCAD, and many more. With their high-level of knowledge and years of expertise, students often consider them as the best STATA assignment help providers in Australia. Thus, we’re always there whenever students find challenges in writing their STATA and CATIA assignments. They can also avail of full-solved assignment samples from us and use them to prepare their own assessment tasks easily. With our STATA assignment help, scoring the top grades is more achievable than ever!

  5. Assignment Help in Melbourne
    We provide all types of assignment help in Melbourne such as primary education, tertiary education, university-level academic writing service in Melbourne Australia.. https://www.thetutorshelp.com/assignment-help-in-melbourne.php

  6. Assignment Help in Perth
    Get best tutor from Perth (Australia) for your assignment help. Stay at the top with premium class content.. Assignment help in Perth https://www.thetutorshelp.com/assignment-help-in-perth.php

  7. Assignment Help in Australia
    Online Assignment Help In Australia service helps the student with their assignments, therefore, lifting work pressure off their shoulders. engineering assignment help electrical engineering civil engineering software engineering in formation technology mechanical engineering computer science the tutors help https://www.thetutorshelp.com/australia.php

  8. Our specialists completely comprehend the prerequisites of each student and follow the rules given by them to make an assignment. We make a point to convey quality assignments inside the given time period. assignment provider
    assignment help melbourne

  9. Want to submit your essay tomorrow? and you don't have enough time to write it. Then visit our website today and avail of our Urgent Essay Writing Service today!


Comments on Google+:

© 2005-2014 Kuribo. Powered by Blogger.