Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
実践に見るテーマの制作方法
Search
Welcart
October 25, 2019
Business
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
実践に見るテーマの制作方法
Welcart
October 25, 2019
Transcript
34 slides
実践に見るテーマの制作方法 2019.10.25 安間絵梨奈
HELLO! 安間 絵梨奈 コルネ株式会社 フロントエンドエンジニア
2通りのテーマ制作方法
親テーマ 2通りのテーマ制作方法 子テーマ 0ベースからの親テーマ制作 親テーマを利用して子テーマ制作
親テーマのメリット・デメリット ▹ 自由なレイアウトで制作できる メリット ▹ 汎用性の実装による制作コストアップ デメリット ▹ 使い慣れたマークアップが利用できる
子テーマのメリット・デメリット ▹ 親テーマを継承 メリット ▹ とくになし デメリット ▹ 制作コストをおさえられる あえて挙げるとしたら...
親テーマの機能継承の難しさ
親テーマを利用して子テーマ制作 推奨
親テーマ選択の基準
親テーマ選択の基準 ▹ 製造元のサポートがしっかりしていること ▹ Welcart対応テーマであること ▹ 必要な機能が備わっているか ▹ 各ページのレイアウトを確認する
子テーマ制作の実際
Welcart 公式親テーマ 多機能 親テーマ
Welcart 公式親テーマ パン屋がWelcartを利用するとど うなるかを想像して制作 パン屋だけでなく、スイーツ・ 洋食・オーガニックなど食品 販売に最適なテーマ 購入ページ:https://www.welcart.com/archives/9091.html デモサイト:https://themes.welcart.info/welcart-panetteria/ 無料クーポン
プレゼント!
子テーマ制作実例紹介
健康食品の定期購入販売 サイト 健康食品サイト Sport ダウンロード:https://www.collne.com/dl/10th/welcart_panetteria-sport.zip
会員の状態によって 閲覧制限のある情報サイト 会員制情報サイト News ダウンロード:https://www.collne.com/dl/10th/welcart_panetteria-wcnews.zip
その前に......
子テーマの作り方をおさらい
子テーマに必要なファイル CSS style.css PHP functions.php screenshot.png 必須 任意
style.cssの設定 style.cssの冒頭に テーマの詳細 を記述します。 /* Theme Name: Panetteria Child Theme
Template: welcart_panetteria */
functions.phpの設定 functions.phpに 親テーマのスタイルシートを読み込む コードを記述 <?php add_action( 'wp_enqueue_scripts', 'child_enqueue_styles' ); function
child_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); }
functions.phpの設定 子テーマのスタイルシートが読み込まれない場合 <?php add_action( 'wp_enqueue_scripts', 'child_enqueue_styles' ); function child_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css' ); }
任意 必須 Welcartの子テーマに必要なファイル CSS PHP style.css functions.php screenshot.png CSS usces_cart.css
usces_cart.cssの設定 方法1:親テーマの usces_cart.css を子テーマにコピー 方法2:親テーマの usces_cart.css を読み込む add_action( 'wp_enqueue_scripts', 'child_enqueue_styles'
); function child_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'parent-cart', get_template_directory_uri() . '/usces_cart.css', array('parent-style', 'usces_default_css') ); } 推奨
子テーマ下準備完了
健康食品の定期購入販売 サイト 健康食品サイト Sport ダウンロード:https://www.collne.com/dl/10th/welcart_panetteria-sport.zip
定期購入プラグイン WCEX Auto Delivery
「 Sport 」テーマ構成 404.php wc-templates archive.php auto_delivery.css
category.php footer.php front-page.php functions.php header.php page.php screenshot.png search.php sidebar-footer.php single.php style.css usces_cart.css 親テーマから修正したいテンプレートをコピー
「 Sport 」テーマ構成 assets 404.php inc
languages page-templates template-parts wc-templates archive.php auto_delivery.css category.php footer.php front-page.php functions.php header.php page.php screenshot.png search.php sidebar-footer.php single.php style.css usces_cart.css 子テーマ用にテンプレート追加
会員の状態によって 閲覧制限のある情報サイト 会員制情報サイト News ダウンロード:https://www.collne.com/dl/10th/welcart_panetteria-wcnews.zip
ダウンロード&サービス販売拡張プラグイン WCEX DL Seller
「News」テーマ構成 inc template-parts wc-templates
archive.php category.php front-page.php functions.php header.php dlseller.css screenshot.png search-article.php sidebar-footer.php single.php style.css usces_cart.css 親テーマから修正したいテンプレートをコピー
「News」テーマ構成 assets inc languages
customize template-parts wc-templates archive.php category.php front-page.php functions.php header.php dlseller.css screenshot.png search-article.php sidebar-footer.php single.php style.css usces_cart.css 子テーマ用にテンプレート追加 images
子テーマ作ろう!
ご清聴ありがとうございました スライドURL:http://bit.ly/2Mv6fLM
More Decks by Welcart
See All by Welcart
オンライン勉強会接続時のZoom設定方法
welcart
0
100
Welcart が実現するWordPress ECの世界(Welcart セミナー 2020/12/9)
welcart
1
140
Welcart が実現するWordPress ECの世界(Welcart セミナー 2020/11/12)
welcart
0
120
Welcart が実現するWordPress ECの世界(Welcart セミナー 2020/10/16)
welcart
0
93
ECサイト構築と運用のノウハウ(Welcart セミナー 2020/7/17)
welcart
0
220
ECサイト構築と運用のノウハウ(Welcart セミナー 2020/7/3)
welcart
0
190
ECサイト構築と運用のノウハウ(Welcart セミナー 2020/6/19)
welcart
0
150
ECサイト構築と運用のノウハウ(Welcart セミナー 2020/6/5)
welcart
0
140
ECサイト構築と運用のノウハウ(Welcart セミナー 2020/5/22)
welcart
0
95
Other Decks in Business
See All in Business
G-gen 強み
ggen
0
1.2k
事業本部紹介資料_261101
mwktp
0
200
エクセレントグループ採用ピッチ[介護事業]
excare
0
43k
20261022_【DCC】トークン化国債・オンチェーンレポWG_中間整理_本紙
progmat
0
1.6k
正しさよりも、受け取ってもらえる言葉を!非暴力コミュニケーションのすすめ
kawanotron
0
240
KiP_CompanyDeck
mickeyboy
0
150
「まず自分が背中を見せる」から始まった ──「打席に立ち続ける」ことで技を磨き、縁を結ぶということ
natty_natty254
5
930
タケウチグループRecruit
takeuchigroup
0
15k
2026 Fuji Oil Outside Directors’ Roundtable (English version)
tsogo817421
2
340
akippa株式会社|Company Deck
akippa
1
27k
01_全社_FLUX採用ピッチ資料_Ver.5.9
flux
13
230k
Flyle Recruiting Deck_2611
flyle
0
110
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
600
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
990
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
640
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
Leo the Paperboy
mayatellez
11
2.5k
Making the Leap to Tech Lead
cromwellryan
135
10k
Balancing Empowerment & Direction
lara
6
1.4k
Building Adaptive Systems
keathley
44
3.3k