📁

ファイル構成と配置先の概要

本番サーバー URL
https://furnitage.tokyo/
Child Theme パス
/wp-content/themes/cocoon-child-master/
静的アセット配置先
/cocoon-child-master/furnitage/
PHPテンプレート配置先
/cocoon-child-master/*.php

エクスポートされたバンドルは大きく 2つのパーツ に分かれます:

# プロジェクトルート(ダウンロードしたフォルダ) ├── wp-templates/ # ① PHPテンプレート群 │ ├── page-about.php → cocoon-child-master/page-about.php │ ├── page-products.php → cocoon-child-master/page-products.php │ ├── page-kaitori.php → cocoon-child-master/page-kaitori.php │ └── page-item.php → cocoon-child-master/page-item.php │ ├── images/ # ② 静的アセット(furnitage/に丸ごと) ├── kaitori/ ├── products/ ├── index.html ├── preview/ ← ローカルプレビュー用(アップロード不要) └── upload-guide.html ← このファイル(アップロード不要)
ℹ️
preview/ フォルダはアップロード不要

preview/ はローカルの開発プレビュー専用です。本番サーバーにはアップロードしないでください。アップロードするのは wp-templates/ の中身と、ルートの index.html / images/ / kaitori/ / products/ フォルダのみです。

1

ZIP の中身を確認・整理する

作業必要

FTP 転送の前に、アップロードする内容を整理しましょう。サーバーには以下のファイルだけを送ります。

wp-templates/ → PHPテンプレート(4ファイル)

page-about.phppage-products.phppage-kaitori.phppage-item.php
これら4ファイルは cocoon-child-master の ルート直下 に置きます。

静的ファイル群 → furnitage/ フォルダとして転送

ルートにある index.htmlimages/kaitori/products/
furnitage/ という名前のフォルダを作ってその中に入れます。

⚠️
フォルダ名に注意

静的アセットのフォルダ名は必ず furnitage(小文字)にしてください。PHPテンプレート内のパス (get_stylesheet_directory() . '/furnitage/...') と一致しないと404エラーになります。

2

PHP テンプレートを FTP で転送する

作業必要

FileZilla などの FTP クライアントで接続し、4つの PHP ファイルを Child Theme のルートに転送します。

ローカルファイル(送り元) サーバー転送先(絶対パス)
wp-templates/page-about.php /wp-content/themes/cocoon-child-master/page-about.php
wp-templates/page-products.php /wp-content/themes/cocoon-child-master/page-products.php
wp-templates/page-kaitori.php /wp-content/themes/cocoon-child-master/page-kaitori.php
wp-templates/page-item.php /wp-content/themes/cocoon-child-master/page-item.php
転送後の確認方法

FTPクライアントで /wp-content/themes/cocoon-child-master/ を開き、4つの page-*.php ファイルが並んでいれば転送完了です。

各PHPテンプレートの役割と内容(参考):

PHP page-about.php(抜粋)
/** * Template Name: Furnitage - About * Template Post Type: page */ // WordPress の wp_head/wp_footer を保持しつつ // Cocoon のヘッダー・フッター・サイドバーを完全バイパス ?><!DOCTYPE html> <html <?php language_attributes(); ?>> ... <?php // 絶対パスで furnitage/index.html をインクルード include( get_stylesheet_directory() . '/furnitage/index.html' ); ?>
3

furnitage/ フォルダを FTP で転送する

作業必要

静的 HTML・画像・CSS などをすべて含む furnitage/ フォルダを Child Theme 内に転送します。

📂
フォルダ作成のポイント

ローカルには furnitage/ フォルダは存在しません。FTPクライアント上で cocoon-child-master/ の中に furnitage という新規フォルダを作成してから、中身を転送してください。

ローカル(転送元) サーバー転送先
index.html(ルート直下) /cocoon-child-master/furnitage/index.html
images/(フォルダごと) /cocoon-child-master/furnitage/images/
kaitori/(フォルダごと) /cocoon-child-master/furnitage/kaitori/
products/(フォルダごと) /cocoon-child-master/furnitage/products/

転送後のサーバー側ディレクトリ構造(確認用):

/wp-content/themes/cocoon-child-master/ ├── page-about.php ← STEP 2で転送済み ├── page-products.php ← STEP 2で転送済み ├── page-kaitori.php ← STEP 2で転送済み ├── page-item.php ← STEP 2で転送済み ├── furnitage/ ← STEP 3で新規作成 │ ├── index.html │ ├── images/ │ │ ├── top_space.jpg │ │ ├── ceo.jpg │ │ ├── about_sofa.jpg │ │ └── ... (8ファイル) │ ├── kaitori/ │ │ ├── index.html │ │ └── sp.html │ └── products/ │ ├── index.html │ ├── sp.html │ └── item.html └── ... (既存の Cocoon Child ファイル群)
⚠️
sofa_new_arrival.jpg は大きいサイズに注意

images/内の sofa_new_arrival.jpg は約5.5MBあります。FTP転送は完了まで時間がかかる場合があります。転送完了を確認してから次のステップに進んでください。

4

WordPress 管理画面でページを作成する

作業必要

FTP 転送が完了したら、WordPress 管理画面(https://furnitage.tokyo/wp-admin/)にログインして4つのページを作成します。

1

「固定ページ」→「新規追加」を開く

WordPress 管理画面の左メニューから 固定ページ新規固定ページを追加 をクリック。

2

ページタイトルとスラッグを設定

タイトル・スラッグは下の表を参考に設定。本文エリアは空白のままで構いません。

3

右パネルの「テンプレート」でFurnitage用を選択

右側サイドバー → ページ属性テンプレート ドロップダウンから Furnitage - About などを選択。

4

「公開」ボタンをクリック

設定後、右上の 公開 ボタンをクリックして保存。URL にアクセスして表示を確認してください。

作成するページの設定一覧

ページタイトル スラッグ テンプレート選択 完成後のURL
Furnitage - トップ about Furnitage - About furnitage.tokyo/about/
Furnitage - 商品一覧 products Furnitage - Products furnitage.tokyo/products/
Furnitage - 買取 kaitori Furnitage - Kaitori furnitage.tokyo/kaitori/
Furnitage - 商品詳細 item Furnitage - Item furnitage.tokyo/item/?id=商品ID

▼ テンプレート選択画面のイメージ

WordPress 管理画面 — 固定ページ編集
Furnitage - トップ
https://furnitage.tokyo/about/
Furnitage - About ▼
公開
← クリックして保存・公開
ℹ️
テンプレートが表示されない場合

テンプレートのドロップダウンに「Furnitage」の選択肢が出ない場合は、PHPファイルの転送が完了していない可能性があります。FTPクライアントで /cocoon-child-master/ 直下に4ファイルが存在するか再確認してください。

5

動作確認

作業必要

各ページにアクセスして正常に表示されるか確認します。

トップページ

https://furnitage.tokyo/about/ にアクセス → ヒーロー画像・ロゴ・商品セクションが正常表示されること

商品一覧

https://furnitage.tokyo/products/ → 商品カードが全件表示・フィルターが動作すること

買取ページ

https://furnitage.tokyo/kaitori/ → ヒーローボタン・お問い合わせフォームが表示されること

商品詳細(パラメータ付き)

https://furnitage.tokyo/item/?id=cassina-lc2 → 商品詳細が動的にレンダリングされること

ブラウザの開発ツールで確認

F12 → Console タブを開き、404エラー(赤い行)が出ていないか確認。Mixed Content 警告も出ないことを確認。

📋

パスマッピング一覧

本番 HTML 内のアセット URL がどのサーバーパスを指しているかの対応表です。

HTML内の絶対URL(抜粋) サーバー上の実ファイルパス
https://furnitage.tokyo/wp-content/themes/cocoon-child-master/furnitage/images/top_space.jpg /cocoon-child-master/furnitage/images/top_space.jpg
https://furnitage.tokyo/wp-content/themes/cocoon-child-master/furnitage/images/ceo.jpg /cocoon-child-master/furnitage/images/ceo.jpg
https://furnitage.tokyo/wp-content/themes/cocoon-child-master/furnitage/products/index.html /cocoon-child-master/furnitage/products/index.html
https://furnitage.tokyo/wp-content/themes/cocoon-child-master/furnitage/kaitori/index.html /cocoon-child-master/furnitage/kaitori/index.html
https://furnitage.tokyo/wp-content/themes/cocoon-child-master/furnitage/products/item.html?id=xxx /cocoon-child-master/furnitage/products/item.html

完了チェックリスト

18枚以上の家具スタジオ画像を処理・アップロード images/ フォルダに全画像配置済み
買取ページのコンテンツとお問い合わせフォームを実装 kaitori/index.html / sp.html 完成
買取ページのヒーローボタンをデスクトップ・モバイル両対応に最適化
CEO プロフィール画像の差し替えとモバイルレイアウトを修正
全アセットパスを WordPress 絶対 URL(HTTPS)に変換 https://furnitage.tokyo/wp-content/themes/cocoon-child-master/furnitage/ ベース
Cocoon Child 用 PHP ページテンプレート 4 件を作成 wp-templates/ 内に配置済み
ローカルプレビュー用 preview/ 環境を構築 相対パスで画像・スタイルが正常表示されることを Playwright で確認済み
PHP テンプレート(4ファイル)を FTP でサーバーへ転送 転送先: /wp-content/themes/cocoon-child-master/
furnitage/ フォルダを FTP でサーバーへ転送 転送先: /wp-content/themes/cocoon-child-master/furnitage/
WordPress 管理画面で固定ページ 4 件を作成・テンプレート割り当て about / products / kaitori / item スラッグで作成
各ページの表示・リンク・画像ロードを本番環境で最終確認
🔧

よくある問題と解決策

テンプレートのドロップダウンに「Furnitage」が表示されない

→ PHPファイルが cocoon-child-master/ の直下(ルート)にあるか確認。サブフォルダに入っていると認識されません。転送後、WordPress 管理画面を一度リロードしてください。

ページは表示されるが画像が404エラーで表示されない

furnitage/images/ フォルダのパスを確認。正しいパス: /wp-content/themes/cocoon-child-master/furnitage/images/ファイル名.jpg。FTPクライアントで階層が正しいか再確認してください。

Mixed Content 警告が出る(セキュリティエラー)

→ HTML ファイル内に http://(非HTTPS)のリソースが残っている可能性があります。本番 HTML の全 URL が https:// で始まっているか確認してください。

商品詳細(item)ページで商品が表示されない

→ URL に ?id=商品ID パラメータが付いているか確認。また、WordPress のパーマリンク設定が 投稿名 になっているかを 設定 → パーマリンク から確認してください。パーマリンク設定変更後は必ず「変更を保存」をクリック。

ページにCocoonのヘッダー・フッターが残って表示される

→ テンプレートが正しく選択されていない状態です。固定ページの編集画面 → 右パネルの「テンプレート」を Furnitage - ○○ に変更して再公開してください。

🎉
アップロード完了後の最終確認URL
  • https://furnitage.tokyo/about/ → トップ・ブランドページ
  • https://furnitage.tokyo/products/ → 商品一覧
  • https://furnitage.tokyo/kaitori/ → 買取ページ
  • https://furnitage.tokyo/item/?id=cassina-lc2 → 商品詳細テスト