Mais conteúdo relacionado
Semelhante a Wordpressスマートフォンテーマ作成 (20)
Wordpressスマートフォンテーマ作成
- 22. © wordbonch.org
WordPressテーマを新規作成
21
該当ページ 優先度
TOPページ
index.php
home.php
月別ページ
archive.php
date.php
カテゴリーページ category.php category-id.php category-slug.php
タグページ tag.php tag-id.php tag-slug.php
タクソノミーページ taxonomy.php taxonomy-tax.php taxonomy-tax-term.php
投稿タイプページ archive-posttype.php
ユーザーページ author.php author-id.php author-nicename.php
メディアページ
single.php
attachment.php MIME_type.php
記事ページ single-posttype.php
固定ページ page.php page-id.php page-slug.php custom.php
検索結果ページ search.php
404ページ 404.php
低 高
第3回 WordPressテーマ作成 (p.17〜18)参照
https://www.slideshare.net/miiitaka/word-press-32692859
- 23. © wordbonch.org
WordPressテーマを新規作成
22
該当ページ 優先度
TOPページ
index.php
home.php
月別ページ
archive.php
date.php
カテゴリーページ category.php category-id.php category-slug.php
タグページ tag.php tag-id.php tag-slug.php
タクソノミーページ taxonomy.php taxonomy-tax.php taxonomy-tax-term.php
投稿タイプページ archive-posttype.php
ユーザーページ author.php author-id.php author-nicename.php
メディアページ
single.php
attachment.php MIME_type.php
記事ページ single-posttype.php
固定ページ page.php page-id.php page-slug.php custom.php
検索結果ページ search.php
404ページ 404.php
低 高
最低限作るべき
テンプレート
第3回 WordPressテーマ作成 (p.17〜18)参照
https://www.slideshare.net/miiitaka/word-press-32692859
- 26. © wordbonch.org
<! DOCTYPE html>
<html lang="ja”>
<head>
<meta charset="UTF-8”>
<title>サイトタイトル</title>
<meta name="viewport" content="width=device-
width, initial-scale=1”>
<link rel="stylesheet" href="//192.168.33.10/wp-
content/themes/wordbonch/html5reset-1.6.1.css"
/>
</head>
<body>
<header></header>
<footer></footer>
</body>
</html>
WordPressテーマを新規作成
25
2-1.トップページを作成(home.php)
ヘッダー
DOCTYPE宣言
日本語であると示すlang属性
viewport設定
reset.css
bodyタグ(コンテンツ)
フッター
- 40. © wordbonch.org
WordPressテーマを新規作成
39
パーツ パーツテンプレート テンプレートタグ
ヘッダー header.php <?php get_header(); ?>
フッター footer.php <?php get_footer(); ?>
サイドバー
sidebar.php
sidebar-content.php
<?php get_sidebar(); ?>
<?php get_sidebar(‘content’); ?>
コメント comments.php <?php comments_template(); ?>
検索フォーム searchform.php <?php get_search_form(); ?>
※カスタム
main.php
main-sub.php
<?php get_template_part(‘main’); ?>
<?php get_template_part(‘main’,’sub’); ?>
※ カスタムパーツテンプレートは、main-sub.phpがなかったら、main.phpを読む優先順位
付けができるのが特徴 第3回 WordPressテーマ作成 (p.16)参照
https://www.slideshare.net/miiitaka/word-press-32692859
- 42. © wordbonch.org
WordPressテーマを新規作成
41
該当ページ 優先度
TOPページ
index.php
home.php
月別ページ
archive.php
date.php
カテゴリーページ category.php category-id.php category-slug.php
タグページ tag.php tag-id.php tag-slug.php
タクソノミーページ taxonomy.php taxonomy-tax.php taxonomy-tax-term.php
投稿タイプページ archive-posttype.php
ユーザーページ author.php author-id.php author-nicename.php
メディアページ
single.php
attachment.php MIME_type.php
記事ページ single-posttype.php
固定ページ page.php page-id.php page-slug.php custom.php
検索結果ページ search.php
404ページ 404.php
低 高
最低限作るべき
テンプレート
第3回 WordPressテーマ作成 (p.17〜18)参照
https://www.slideshare.net/miiitaka/word-press-32692859
次はこれを作ります