Girls Talk

Tenko Kisaragi

自作テーマに必要な最初の3file -WordPress-


index.php と style.css、それから絶対に必要ではないけど screenshot.jpg か png (300×225)の三個のファイル。

index.php は、空でOK! cssファイルは、テーマに関する情報を先頭に書いておく事。
例えば、Twenty Thirteen のcssファイルの先頭部分には、下のように記載があります。

Theme Name: Twenty Thirteen
Theme URI:
Author: the WordPress team
Author URI:
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.0
License: GNU General Public License v2 or later
License URI:
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.

Theme Name: wdw-blog
Theme URL:
Author: Web.Design.Works YY



以上三つのファイルを「wdwblog」(名前は任意)というフォルダを作って、WordPress の Theme に入れればいいだけ。