2007年7月7日

新しいサイト”わーどぷれすっ!”をオープンしました。

今後はWordPress関連の話題は全部このサイトに投稿していきます。プラグイン一覧もこの新サイトに移しましたので、ドウゾよろしくお願いします。

WordPress テーマの詳説:第一章

Registry First Aid will find these invalid entries and remove them from your registry. With Registry First Aid, your Windows registry will be always clean and correct, helping your programs load faster and speeding up your computer. Fast, easy to use, PC speed testing and benchmarking. PassMark PerformanceTest allows you to objectively benchmark a x blades keygen PC using a variety of different speed tests and compare the results to other computers. Twenty-eight standard benchmark tests are available in six test suites plus there are seven advanced testing windows for custom benchmarking. In addition to the standard tests, there are 7 summary results plus the overall PassMark Rating result. The benchmark results are xilisoft keygen presented as easy to read bar charts so that you dont need to spend hours studying the number to know the result. Timing for the tests is done using high resolution timers, which are accurate to approximately 1 millionth of a second on most PCs. Create professional-quality advertising, sophisticated print designs and electronic documents with PagePlus sims 2 keygen X5, the best-in-class desktop publisher.

まとめ

基本的なレイアウトが定義されてコンテンツは望みどおりの場所に収まった。また、第一章では次のことを学んだ:

  • index.phpはテーマの出発点
  • sidebar.phpindex.phpによって呼び出され、ID「sidebar」を持つ一つのdiv内に収められたサイドバーのコンテンツを生成する
  • header.phpindex.phpによって呼び出され、ヘッダー関連のことをいくつか定義している。これはまだ見ていない
  • footer.phpindex.phpによって呼び出され、ID「footer」を持つ一つのdiv内に収められたフッター要素を生成する
  • style.cssは上記ファイルに定義されている要素をコントロールする

これで少しは WordPress がなにやら理解不能なものではなくなったと思う。これまで施した変更はほんのわずかなものだが、このテーマはすでに見違えるようなものになった。

最後のスタイリング

第一章を終える前に、もう少しだけこのサイトの見栄えをよくしよう。デフォルトのフォントはとても格好悪くて一昔前のウェブサイトを連想させる。次のスタイルを追加することで見栄えをもっとよくすることができる:(訳注:これは欧米文字向けの修正で、日本語には別のフォントやフォントサイズがいいかもしれない)

body
{
  font-size:   13px;
  line-height: 18px;
  font-family: Georgia, "Times New Roman", Times, serif;
  margin:      20px;
}

これはbody要素内のすべて – 基本的にこのページ上で見えるすべて – のスタイルを変更する。20ピクセルのマージン(margin:20px;)はページ全体の周りに空間を作る。line-heightの変更は行と行の間隔をあけて文章を読みやすくする。これらすべての値は自分の好みに応じて変更することができる。また、このガイドの中でも後ほど変更するかもしれない。(書いてすぐに公開する危険性を証明している)

第一章の終わりに

これで WordPress テーマの詳説:第一章を終わる。第二章はサイドバーに焦点を当て、さらに、もっと魅力的なヘッダーとフッターを追加する。第三章では投稿部分を見て、第四章で残りの詳細を見ていく。ではまた会いましょう!

第二章 – デザインの完成、ヘッダーとフッター

This entry was posted in WordPress, WP ヒント. Bookmark the permalink.

7 Responses to WordPress テーマの詳説:第一章

  1. Pingback: UrbanGiraffe » Japanese translation

  2. Pingback: Standing Tall

  3. Pingback: WordPress導入レポ・テーマ | 12-09.net

  4. Pingback: テーマ作成、修正の参考和訳ページ | setting_web

  5. Pingback: がじゅまろの樹» ブログアーカイブ » 必須情報は忘れるためにある

  6. Pingback: WordPressのオリジナルテンプレートを自作するのに役立つページ。 - 空が好きな人のメモ帳

  7. Pingback: WordPressのテーマ « Logs

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>