ウェブ学のすすめ

Study of Web Design & Programing

WordPressのテーマを適用させるスタイルシートの書き方

現在、ポートフォリオWordPressで構築しているので復習してみました。

一般的な形式

style.css
/*
Theme Name: テーマ名
Theme URI: テーマのURL
Description: テーマの説明
Version: テーマのバージョン
Author: テーマの著作者
Author URI: テーマの著作者のURL
Tags: テーマのタギング
*/

「Twenty Eleven」の場合

/*
↓テーマ名
Theme Name: Twenty Eleven

↓テーマのURL
Theme URI: http://wordpress.org/extend/themes/twentyeleven

↓テーマの著作者
Author: the WordPress team

↓テーマの著作者のURL
Author URI: http://wordpress.org/

↓テーマの説明
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.

↓テーマのバージョン
Version: 1.4

↓ライセンス
License: GNU General Public License v2 or later

↓ライセンスのURL
License URI: http://www.gnu.org/licenses/gpl-2.0.html

↓テーマのタギング
Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready

↓ドメイン
Text Domain: twentyeleven
*/

参考

WordPress Codex 日本語版