SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
Child Themes
WordPress Meetup Bangkok, 2014/08/17
Shinichi Nishikawa
What is a Child
Theme?
Codex
A child theme is a theme that inherits the
functionality of another theme, called the
parent theme.
!
Child themes allow you to modify, or add to the
functionality of that parent theme.
!
A child theme is the best, safest, and easiest
way to modify an existing theme.
Codex
A child theme is a theme that inherits the
functionality of another theme, called the
parent theme.
!
Child themes allow you to modify, or add to the
functionality of that parent theme.
!
A child theme is the best, safest, and easiest
way to modify an existing theme.
Codex
A child theme is a theme that inherits the
functionality of another theme, called the
parent theme.
!
Child themes allow you to modify, or add to the
functionality of that parent theme.
!
A child theme is the best, safest, and easiest
way to modify an existing theme.
Codex
Child Theme:

http://codex.wordpress.org/Child_Themes
Parent Theme?
Any WordPress themes can be a Parent
Theme.
Exception: You can’t make a Child Theme
of another Child Themes.
How to make a child theme
1. Create a folder in wp-content/themes
2. Put style.css with

“Template: ParentThemeDirName”

in Comment.
3. Add what you want.
Demo 1
Parent Theme: Twenty Fourteen
Child Theme: Shin 2014
Concept of Child Theme
Don’t reinvent the wheel.
Change only what you need.
Protect changes from theme updates.
Override
You can override 3 things
1. css
2. template files
3. functions in functions.php
1. Override css
a presentation by Brandon Dove.



http://www.slideshare.net/
brandondove/parentchild-themes-vs-
theme-frameworks/5
Demo 2
Parent Theme: Twenty Thirteen
Child Theme: nu2013
https://wordpress.org/themes/nu2013
Example: nskw-style.com
2. Override template files
If Child Theme has a template file,
WordPress uses that.
If not, WordPress uses a template file in
Parent Theme.
3. Override functions.php
2 ways.
1. add functions.

→ example in nu2013
2. override functions.

→ devdmbootstrap3
Demo 3
Parent Theme: devdmbootstrap3
Child Theme: devdmbootstrap3-child
https://wordpress.org/themes/
devdmbootstrap3
Child Themes vs
Theme Frameworks.
Theme Framework
Examples
Underscores: underscores.me
Roots: roots.io/starter-theme
Which to choose?
Child themes?
When you find a good parent theme.
And it’s almost what you want.
And you need to change a little bit.
( When the budget is very small )
Theme Framework?
When you create from scratch.
When you have your own design.
When you change a lot from the original
theme.

Contenu connexe

Tendances

WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
openchamp
 
Dayton word press meetup
Dayton word press meetupDayton word press meetup
Dayton word press meetup
Dustin Hartzler
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
henri_makembe
 
Theme development essentials columbus oh word camp 2012
Theme development essentials   columbus oh word camp 2012Theme development essentials   columbus oh word camp 2012
Theme development essentials columbus oh word camp 2012
Joe Querin
 

Tendances (20)

Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
 
CSI: WordPress -- Getting Into the Guts
CSI: WordPress -- Getting Into the GutsCSI: WordPress -- Getting Into the Guts
CSI: WordPress -- Getting Into the Guts
 
An easy guide to Plugin Development
An easy guide to Plugin DevelopmentAn easy guide to Plugin Development
An easy guide to Plugin Development
 
Wp visual editors - Learning Style
Wp visual editors - Learning StyleWp visual editors - Learning Style
Wp visual editors - Learning Style
 
Intro to WordPress Plugins
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress Plugins
 
Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015
 
Dayton word press meetup
Dayton word press meetupDayton word press meetup
Dayton word press meetup
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
 
Modular plugins
Modular pluginsModular plugins
Modular plugins
 
Empowering Non-Profits with WordPress
Empowering Non-Profits with WordPressEmpowering Non-Profits with WordPress
Empowering Non-Profits with WordPress
 
WordCamp Bournemouth 2014 - Designing with data in WordPress
WordCamp Bournemouth 2014 - Designing with data in WordPressWordCamp Bournemouth 2014 - Designing with data in WordPress
WordCamp Bournemouth 2014 - Designing with data in WordPress
 
Rapid WordPress theme development
Rapid WordPress theme developmentRapid WordPress theme development
Rapid WordPress theme development
 
What is (not) WordPress
What is (not) WordPressWhat is (not) WordPress
What is (not) WordPress
 
@wcmtl
@wcmtl@wcmtl
@wcmtl
 
Theme development essentials columbus oh word camp 2012
Theme development essentials   columbus oh word camp 2012Theme development essentials   columbus oh word camp 2012
Theme development essentials columbus oh word camp 2012
 
WordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow PresentationWordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow Presentation
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPress
 
WordCamp Birmingham 2015 - Theme building tricks of the trade
WordCamp Birmingham 2015 - Theme building tricks of the tradeWordCamp Birmingham 2015 - Theme building tricks of the trade
WordCamp Birmingham 2015 - Theme building tricks of the trade
 

Similaire à Child Theme

Theme frameworks & child themes
Theme frameworks & child themesTheme frameworks & child themes
Theme frameworks & child themes
Chris Olbekson
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
rfair404
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
DaisyOlsen
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
DaisyOlsen
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themes
vegasgeek
 
Child themes
Child themesChild themes
Child themes
bobwlsn
 

Similaire à Child Theme (20)

Theme frameworks & child themes
Theme frameworks & child themesTheme frameworks & child themes
Theme frameworks & child themes
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
 
WPAZ Child Themes
WPAZ Child ThemesWPAZ Child Themes
WPAZ Child Themes
 
WP Joburg Meetup 10: Genesis Framework by Trish Cornelius
WP Joburg Meetup 10: Genesis Framework by Trish CorneliusWP Joburg Meetup 10: Genesis Framework by Trish Cornelius
WP Joburg Meetup 10: Genesis Framework by Trish Cornelius
 
Firstborn child theme word camp presentation - atlanta 2013
Firstborn child theme   word camp presentation - atlanta 2013Firstborn child theme   word camp presentation - atlanta 2013
Firstborn child theme word camp presentation - atlanta 2013
 
Rockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child ThemesRockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child Themes
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themes
 
Birthing a Child Theme - WordCamp Scranton
Birthing a Child Theme - WordCamp ScrantonBirthing a Child Theme - WordCamp Scranton
Birthing a Child Theme - WordCamp Scranton
 
Introduction to WordPress Child Themes
Introduction to WordPress Child ThemesIntroduction to WordPress Child Themes
Introduction to WordPress Child Themes
 
The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano Edition
 
The Child Theme Dilemma (EN)
The Child Theme Dilemma (EN)The Child Theme Dilemma (EN)
The Child Theme Dilemma (EN)
 
Why you should be using WordPress child themes
Why you should be using WordPress child themesWhy you should be using WordPress child themes
Why you should be using WordPress child themes
 
The Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesThe Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child Themes
 
Parent and child themes
Parent and child themesParent and child themes
Parent and child themes
 
What are child themes, and why use them
What are child themes, and why use themWhat are child themes, and why use them
What are child themes, and why use them
 
Child themes
Child themesChild themes
Child themes
 

Plus de Shinichi Nishikawa

電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係
電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係
電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係
Shinichi Nishikawa
 
WordPressでウェブサービスを作ろう! #wbNagoya
WordPressでウェブサービスを作ろう! #wbNagoyaWordPressでウェブサービスを作ろう! #wbNagoya
WordPressでウェブサービスを作ろう! #wbNagoya
Shinichi Nishikawa
 
CodaでClipを使ってWordPress開発を早くするススメ。
 CodaでClipを使ってWordPress開発を早くするススメ。 CodaでClipを使ってWordPress開発を早くするススメ。
CodaでClipを使ってWordPress開発を早くするススメ。
Shinichi Nishikawa
 
WordPressマルチサイト機能を使ってブログポータルを作ってみよう!
WordPressマルチサイト機能を使ってブログポータルを作ってみよう!WordPressマルチサイト機能を使ってブログポータルを作ってみよう!
WordPressマルチサイト機能を使ってブログポータルを作ってみよう!
Shinichi Nishikawa
 
4時間まったりWordPressテーマ作成講座
4時間まったりWordPressテーマ作成講座4時間まったりWordPressテーマ作成講座
4時間まったりWordPressテーマ作成講座
Shinichi Nishikawa
 

Plus de Shinichi Nishikawa (19)

WordPress Community in Japan
WordPress Community in JapanWordPress Community in Japan
WordPress Community in Japan
 
GPL: WordPress 4つの自由と ビジネスモデル / WordCamp Tokyo 2015 講演スライド
GPL: WordPress 4つの自由と ビジネスモデル / WordCamp Tokyo 2015 講演スライドGPL: WordPress 4つの自由と ビジネスモデル / WordCamp Tokyo 2015 講演スライド
GPL: WordPress 4つの自由と ビジネスモデル / WordCamp Tokyo 2015 講演スライド
 
Learning from theme review requirements
Learning from theme review requirementsLearning from theme review requirements
Learning from theme review requirements
 
Wordpress Community in Japan
Wordpress Community in JapanWordpress Community in Japan
Wordpress Community in Japan
 
WordPress community and events in Japan. presented at #wp10 meet up in Bangko...
WordPress community and events in Japan. presented at #wp10 meet up in Bangko...WordPress community and events in Japan. presented at #wp10 meet up in Bangko...
WordPress community and events in Japan. presented at #wp10 meet up in Bangko...
 
WordCamp Seoul: WordPress Based web services in Japan / WordCamp 서울 : 일본에서 워드...
WordCamp Seoul: WordPress Based web services in Japan / WordCamp 서울 : 일본에서 워드...WordCamp Seoul: WordPress Based web services in Japan / WordCamp 서울 : 일본에서 워드...
WordCamp Seoul: WordPress Based web services in Japan / WordCamp 서울 : 일본에서 워드...
 
2013年3月16日のWordBench大阪
2013年3月16日のWordBench大阪2013年3月16日のWordBench大阪
2013年3月16日のWordBench大阪
 
アプリケーションプラットフォームとしてのWordPressの序論。ころぐとBookPressを事例に!WordBench福岡の資料!20130323
アプリケーションプラットフォームとしてのWordPressの序論。ころぐとBookPressを事例に!WordBench福岡の資料!20130323アプリケーションプラットフォームとしてのWordPressの序論。ころぐとBookPressを事例に!WordBench福岡の資料!20130323
アプリケーションプラットフォームとしてのWordPressの序論。ころぐとBookPressを事例に!WordBench福岡の資料!20130323
 
電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係
電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係
電子出版プラットフォーム『BookPress』にみるAWSと電子出版の素敵な関係
 
子育てとブログを考える「ころぐ講演」
子育てとブログを考える「ころぐ講演」子育てとブログを考える「ころぐ講演」
子育てとブログを考える「ころぐ講演」
 
WordPressでウェブサービスを作ろう! #wbNagoya
WordPressでウェブサービスを作ろう! #wbNagoyaWordPressでウェブサービスを作ろう! #wbNagoya
WordPressでウェブサービスを作ろう! #wbNagoya
 
WordCamp Tokyo 2012 Concept
WordCamp Tokyo 2012 ConceptWordCamp Tokyo 2012 Concept
WordCamp Tokyo 2012 Concept
 
CodaでClipを使ってWordPress開発を早くするススメ。
 CodaでClipを使ってWordPress開発を早くするススメ。 CodaでClipを使ってWordPress開発を早くするススメ。
CodaでClipを使ってWordPress開発を早くするススメ。
 
第三章ナビゲーション < 第4回デザイニング・インターフェース勉強会
第三章ナビゲーション < 第4回デザイニング・インターフェース勉強会第三章ナビゲーション < 第4回デザイニング・インターフェース勉強会
第三章ナビゲーション < 第4回デザイニング・インターフェース勉強会
 
WordCampTokyo2012 開催のお知らせとスタッフ募集
WordCampTokyo2012 開催のお知らせとスタッフ募集WordCampTokyo2012 開催のお知らせとスタッフ募集
WordCampTokyo2012 開催のお知らせとスタッフ募集
 
WordPressマルチサイト機能を使ってブログポータルを作ってみよう!
WordPressマルチサイト機能を使ってブログポータルを作ってみよう!WordPressマルチサイト機能を使ってブログポータルを作ってみよう!
WordPressマルチサイト機能を使ってブログポータルを作ってみよう!
 
4時間まったりWordPressテーマ作成講座
4時間まったりWordPressテーマ作成講座4時間まったりWordPressテーマ作成講座
4時間まったりWordPressテーマ作成講座
 
WordPress中級者への道!テンプレートタグはどう動くのか!?
WordPress中級者への道!テンプレートタグはどう動くのか!?WordPress中級者への道!テンプレートタグはどう動くのか!?
WordPress中級者への道!テンプレートタグはどう動くのか!?
 
WordPressの管理画面を徹底カスタマイズ!
WordPressの管理画面を徹底カスタマイズ!WordPressの管理画面を徹底カスタマイズ!
WordPressの管理画面を徹底カスタマイズ!
 

Dernier

Dernier (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Child Theme

  • 1. Child Themes WordPress Meetup Bangkok, 2014/08/17 Shinichi Nishikawa
  • 2. What is a Child Theme?
  • 3. Codex A child theme is a theme that inherits the functionality of another theme, called the parent theme. ! Child themes allow you to modify, or add to the functionality of that parent theme. ! A child theme is the best, safest, and easiest way to modify an existing theme.
  • 4. Codex A child theme is a theme that inherits the functionality of another theme, called the parent theme. ! Child themes allow you to modify, or add to the functionality of that parent theme. ! A child theme is the best, safest, and easiest way to modify an existing theme.
  • 5. Codex A child theme is a theme that inherits the functionality of another theme, called the parent theme. ! Child themes allow you to modify, or add to the functionality of that parent theme. ! A child theme is the best, safest, and easiest way to modify an existing theme.
  • 7. Parent Theme? Any WordPress themes can be a Parent Theme. Exception: You can’t make a Child Theme of another Child Themes.
  • 8. How to make a child theme 1. Create a folder in wp-content/themes 2. Put style.css with
 “Template: ParentThemeDirName”
 in Comment. 3. Add what you want.
  • 9. Demo 1 Parent Theme: Twenty Fourteen Child Theme: Shin 2014
  • 10. Concept of Child Theme Don’t reinvent the wheel. Change only what you need. Protect changes from theme updates.
  • 11. Override You can override 3 things 1. css 2. template files 3. functions in functions.php
  • 12. 1. Override css a presentation by Brandon Dove.
 
 http://www.slideshare.net/ brandondove/parentchild-themes-vs- theme-frameworks/5
  • 13. Demo 2 Parent Theme: Twenty Thirteen Child Theme: nu2013 https://wordpress.org/themes/nu2013 Example: nskw-style.com
  • 14. 2. Override template files If Child Theme has a template file, WordPress uses that. If not, WordPress uses a template file in Parent Theme.
  • 15. 3. Override functions.php 2 ways. 1. add functions.
 → example in nu2013 2. override functions.
 → devdmbootstrap3
  • 16. Demo 3 Parent Theme: devdmbootstrap3 Child Theme: devdmbootstrap3-child https://wordpress.org/themes/ devdmbootstrap3
  • 17. Child Themes vs Theme Frameworks.
  • 20. Child themes? When you find a good parent theme. And it’s almost what you want. And you need to change a little bit. ( When the budget is very small )
  • 21. Theme Framework? When you create from scratch. When you have your own design. When you change a lot from the original theme.