SlideShare a Scribd company logo
1 of 18
WordPress Parent/Child Themes by Lloyd Africa
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction  What is a Theme? Themes Themes are made up of a collection of PHP templates, CSS, Images, and JavaScript files, bundled together in a single directory, located in the WordPress themes directory [ wp-content/themes ]. Any theme that is extended is known as a PARENT. All the themes born from this parent are know as CHILD themes. Child Themes A child theme is a reference to a parent theme and all that is needed is a single style sheet [ style.css ]. You can optionally add your own templates or functions to customize the markup that the theme produces but essentially, style.css, is all WordPress requires you to define A Theme Framework is a solidly coded theme that serves as a base for other themes.
Creating a child theme " We'll be working with the thematic framework which is assumed, downloaded, unzipped, and sitting in [wp-content/themes/ thematic ] " Step 1  -  Create a new folder in [wp-content/themes/ YOUR-CHILD-THEME ] Step 2 -  Create a new file called style.css and put it into your newly created folder Step 3 -  Open/Edit your style.css (which should be blank) and add in /* Theme Name:  YOUR-CHILD-THEME Description: Child Theme based on Thematic Author: Lloyd Africa Template:  thematic  /* this points to its parent and inherits ALL its functionality */ Version: 1.0 . This work is released under the GNU General Public License 2: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html . */ @import url("../ thematic /style.css"); That's it!
Need more than CSS? &quot; If you need to change more than just the CSS and what to add in your own functions or display a unique favicon or do something funky then create a new functions.php and add this new file to  [wp-content/themes/ YOUR-CHILD-THEME ] &quot; Step 1  -  Open/Edit your functions.php (which should be blank) and add in <?php function  childtheme_favicon() { ?>      <link rel=&quot; shortcut icon &quot; href=&quot; <?php echo bloginfo('stylesheet_directory') ?> /images/favicon.ico&quot;> <?php }   add_action(' wp_head ', ' childtheme_favicon '); /* your other funky code here */ ?> That's it!
Benefits of themes Standardization of themes will improve workflows and allow multiple developers and designers to add, edit, extend and design around a single known, community supported base theme (*framework). If you have a 1000 client sites and WordPress 5.0 is released, you'd potentially have to hunt through the code of a 1000 sites and multiple template files looking for stuff to  check, test and maybe even fix. If those clients are using child themes to skin a carefully coded parent theme and maybe added some custom HTML or PHP, your only concern would be the parent theme.  One Theme. 1000 Sites.
Theme Frameworks Sandbox http://wordpress.org/extend/themes/sandbox Carrington http://carringtontheme.com/ WP-Framework http://wpframework.com/ Hybrid http://themehybrid.com/themes/hybrid Thematic http://themeshaper.com/thematic/
Thematic Thematic is a WordPress theme framework,  designed by Ian Stewart. It has 13 total widget areas and compatible with plugins such as Subscribe to Comments,  WP-PageNavi, and Comment-license.  It's free open source and users are able to  remove credit information through the  theme options page. It has a growing community following, support forums, commercial support and customization and is leading the wave of killer parent/child theme frameworks. Watch this space [                          ]
Lessons Learnt Themes are the future of WordPress &quot;skinning&quot; Moving forward it makes sense to work around an existing theme framework for WordPress and if you have the time and budget, to create your own theme framework. Its clear that the future of the current top 5 theme frameworks are well stable given their community support and increased following. These &quot;standards&quot; make development and designing easier and even simpler and once familiar with a 3rd party or custom theme framework, should see production time reduced potentially by half.
 
 
 
 
 
 
 
 
 

More Related Content

What's hot

Introduction to WordPress
Introduction to WordPressIntroduction to WordPress
Introduction to WordPressEunus Hosen
 
WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1Yoav Farhi
 
WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)Stephanie Leary
 
Introduction To WordPress
Introduction To WordPressIntroduction To WordPress
Introduction To WordPressCraig Bailey
 
How to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy StepsHow to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy StepsSingsys Pte Ltd
 
SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99Noel Saw
 
Introduction to WordPress Slides from WordCamp 2012 by Gary A. Bacon
Introduction to WordPress Slides from WordCamp 2012 by Gary A. BaconIntroduction to WordPress Slides from WordCamp 2012 by Gary A. Bacon
Introduction to WordPress Slides from WordCamp 2012 by Gary A. BaconGary Bacon
 
WordPress Website Creation Training Course Slides
WordPress Website Creation Training Course SlidesWordPress Website Creation Training Course Slides
WordPress Website Creation Training Course SlidesEquinet Academy
 
WordPress: An Introduction
WordPress: An IntroductionWordPress: An Introduction
WordPress: An Introductionsounddelivery
 
Introduction to WordPress
Introduction to WordPressIntroduction to WordPress
Introduction to WordPressLumosTech
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPressJeff Cohan
 
WordPress Hampton Roads Meetup 9-18-12
WordPress Hampton Roads Meetup 9-18-12WordPress Hampton Roads Meetup 9-18-12
WordPress Hampton Roads Meetup 9-18-12Melodie Laylor
 
The WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts HereThe WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts HereBusiness Vitality LLC
 
Basic Wordpress Session
Basic Wordpress SessionBasic Wordpress Session
Basic Wordpress SessionVipul Garg
 

What's hot (20)

Introduction to WordPress
Introduction to WordPressIntroduction to WordPress
Introduction to WordPress
 
WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1
 
WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)WordPress Tips and Tricks (DFW Meetup)
WordPress Tips and Tricks (DFW Meetup)
 
WPAZ Child Themes
WPAZ Child ThemesWPAZ Child Themes
WPAZ Child Themes
 
Wordcampnigeria
WordcampnigeriaWordcampnigeria
Wordcampnigeria
 
Introduction To WordPress
Introduction To WordPressIntroduction To WordPress
Introduction To WordPress
 
How to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy StepsHow to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy Steps
 
Wordpress podcamp2011
Wordpress podcamp2011Wordpress podcamp2011
Wordpress podcamp2011
 
What is (not) WordPress
What is (not) WordPressWhat is (not) WordPress
What is (not) WordPress
 
W pthemes
W pthemesW pthemes
W pthemes
 
SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99
 
Introduction to WordPress Slides from WordCamp 2012 by Gary A. Bacon
Introduction to WordPress Slides from WordCamp 2012 by Gary A. BaconIntroduction to WordPress Slides from WordCamp 2012 by Gary A. Bacon
Introduction to WordPress Slides from WordCamp 2012 by Gary A. Bacon
 
WordPress Website Creation Training Course Slides
WordPress Website Creation Training Course SlidesWordPress Website Creation Training Course Slides
WordPress Website Creation Training Course Slides
 
WordPress: An Introduction
WordPress: An IntroductionWordPress: An Introduction
WordPress: An Introduction
 
Introduction to WordPress
Introduction to WordPressIntroduction to WordPress
Introduction to WordPress
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPress
 
WordPress Hampton Roads Meetup 9-18-12
WordPress Hampton Roads Meetup 9-18-12WordPress Hampton Roads Meetup 9-18-12
WordPress Hampton Roads Meetup 9-18-12
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
The WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts HereThe WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts Here
 
Basic Wordpress Session
Basic Wordpress SessionBasic Wordpress Session
Basic Wordpress Session
 

Viewers also liked

2009-09-11-Prologue_Theme
2009-09-11-Prologue_Theme2009-09-11-Prologue_Theme
2009-09-11-Prologue_ThemeLightSpeed
 
2009-09-11-WooThemes
2009-09-11-WooThemes2009-09-11-WooThemes
2009-09-11-WooThemesLightSpeed
 
2009-08-03-small-business-young-networking
2009-08-03-small-business-young-networking2009-08-03-small-business-young-networking
2009-08-03-small-business-young-networkingLightSpeed
 
2009-08-28-Automattic
2009-08-28-Automattic2009-08-28-Automattic
2009-08-28-AutomatticLightSpeed
 
WordPress Suite 2009
WordPress Suite 2009WordPress Suite 2009
WordPress Suite 2009LightSpeed
 
2009_09_11_Grid960
2009_09_11_Grid9602009_09_11_Grid960
2009_09_11_Grid960LightSpeed
 

Viewers also liked (6)

2009-09-11-Prologue_Theme
2009-09-11-Prologue_Theme2009-09-11-Prologue_Theme
2009-09-11-Prologue_Theme
 
2009-09-11-WooThemes
2009-09-11-WooThemes2009-09-11-WooThemes
2009-09-11-WooThemes
 
2009-08-03-small-business-young-networking
2009-08-03-small-business-young-networking2009-08-03-small-business-young-networking
2009-08-03-small-business-young-networking
 
2009-08-28-Automattic
2009-08-28-Automattic2009-08-28-Automattic
2009-08-28-Automattic
 
WordPress Suite 2009
WordPress Suite 2009WordPress Suite 2009
WordPress Suite 2009
 
2009_09_11_Grid960
2009_09_11_Grid9602009_09_11_Grid960
2009_09_11_Grid960
 

Similar to 2009-08-28-WordPress-Parent-Child-Themes

Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themeshenri_makembe
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themesDaisyOlsen
 
WortdPress Child themes: Why and How
WortdPress Child themes: Why and HowWortdPress Child themes: Why and How
WortdPress Child themes: Why and HowPaul Bearne
 
Theme frameworks & child themes
Theme frameworks & child themesTheme frameworks & child themes
Theme frameworks & child themesChris Olbekson
 
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 2013Evan Mullins
 
Child themes
Child themesChild themes
Child themesbobwlsn
 
Choosing Themes
Choosing ThemesChoosing Themes
Choosing ThemesDaisyOlsen
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Joe Querin
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...LinnAlexandra
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress ThemesLaura Hartwig
 
advance theme development
advance theme developmentadvance theme development
advance theme development1amitgupta
 
Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality Rakesh Kushwaha
 
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...
Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...Aban Nesta
 
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 CorneliusWPJoburg
 
WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4David Bisset
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themesvegasgeek
 
Child Themes (WordCamp Dublin 2017) with notes
Child Themes (WordCamp Dublin 2017) with notesChild Themes (WordCamp Dublin 2017) with notes
Child Themes (WordCamp Dublin 2017) with notesDamien Carbery
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themesopenchamp
 

Similar to 2009-08-28-WordPress-Parent-Child-Themes (20)

Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
 
WortdPress Child themes: Why and How
WortdPress Child themes: Why and HowWortdPress Child themes: Why and How
WortdPress Child themes: Why and How
 
Theme frameworks & child themes
Theme frameworks & child themesTheme frameworks & child themes
Theme frameworks & child themes
 
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
 
Child themes
Child themesChild themes
Child themes
 
Choosing Themes
Choosing ThemesChoosing Themes
Choosing Themes
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
HTML/CSS for WordPress
HTML/CSS for WordPressHTML/CSS for WordPress
HTML/CSS for WordPress
 
advance theme development
advance theme developmentadvance theme development
advance theme development
 
Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality
 
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...
Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...
 
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
 
Daughter Themes
Daughter ThemesDaughter Themes
Daughter Themes
 
WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themes
 
Child Themes (WordCamp Dublin 2017) with notes
Child Themes (WordCamp Dublin 2017) with notesChild Themes (WordCamp Dublin 2017) with notes
Child Themes (WordCamp Dublin 2017) with notes
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

2009-08-28-WordPress-Parent-Child-Themes

  • 1. WordPress Parent/Child Themes by Lloyd Africa
  • 2.
  • 3. Introduction  What is a Theme? Themes Themes are made up of a collection of PHP templates, CSS, Images, and JavaScript files, bundled together in a single directory, located in the WordPress themes directory [ wp-content/themes ]. Any theme that is extended is known as a PARENT. All the themes born from this parent are know as CHILD themes. Child Themes A child theme is a reference to a parent theme and all that is needed is a single style sheet [ style.css ]. You can optionally add your own templates or functions to customize the markup that the theme produces but essentially, style.css, is all WordPress requires you to define A Theme Framework is a solidly coded theme that serves as a base for other themes.
  • 4. Creating a child theme &quot; We'll be working with the thematic framework which is assumed, downloaded, unzipped, and sitting in [wp-content/themes/ thematic ] &quot; Step 1  -  Create a new folder in [wp-content/themes/ YOUR-CHILD-THEME ] Step 2 -  Create a new file called style.css and put it into your newly created folder Step 3 - Open/Edit your style.css (which should be blank) and add in /* Theme Name:  YOUR-CHILD-THEME Description: Child Theme based on Thematic Author: Lloyd Africa Template: thematic /* this points to its parent and inherits ALL its functionality */ Version: 1.0 . This work is released under the GNU General Public License 2: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html . */ @import url(&quot;../ thematic /style.css&quot;); That's it!
  • 5. Need more than CSS? &quot; If you need to change more than just the CSS and what to add in your own functions or display a unique favicon or do something funky then create a new functions.php and add this new file to  [wp-content/themes/ YOUR-CHILD-THEME ] &quot; Step 1  -  Open/Edit your functions.php (which should be blank) and add in <?php function childtheme_favicon() { ?>      <link rel=&quot; shortcut icon &quot; href=&quot; <?php echo bloginfo('stylesheet_directory') ?> /images/favicon.ico&quot;> <?php }   add_action(' wp_head ', ' childtheme_favicon '); /* your other funky code here */ ?> That's it!
  • 6. Benefits of themes Standardization of themes will improve workflows and allow multiple developers and designers to add, edit, extend and design around a single known, community supported base theme (*framework). If you have a 1000 client sites and WordPress 5.0 is released, you'd potentially have to hunt through the code of a 1000 sites and multiple template files looking for stuff to  check, test and maybe even fix. If those clients are using child themes to skin a carefully coded parent theme and maybe added some custom HTML or PHP, your only concern would be the parent theme.  One Theme. 1000 Sites.
  • 7. Theme Frameworks Sandbox http://wordpress.org/extend/themes/sandbox Carrington http://carringtontheme.com/ WP-Framework http://wpframework.com/ Hybrid http://themehybrid.com/themes/hybrid Thematic http://themeshaper.com/thematic/
  • 8. Thematic Thematic is a WordPress theme framework, designed by Ian Stewart. It has 13 total widget areas and compatible with plugins such as Subscribe to Comments,  WP-PageNavi, and Comment-license.  It's free open source and users are able to  remove credit information through the  theme options page. It has a growing community following, support forums, commercial support and customization and is leading the wave of killer parent/child theme frameworks. Watch this space [                          ]
  • 9. Lessons Learnt Themes are the future of WordPress &quot;skinning&quot; Moving forward it makes sense to work around an existing theme framework for WordPress and if you have the time and budget, to create your own theme framework. Its clear that the future of the current top 5 theme frameworks are well stable given their community support and increased following. These &quot;standards&quot; make development and designing easier and even simpler and once familiar with a 3rd party or custom theme framework, should see production time reduced potentially by half.
  • 10.  
  • 11.  
  • 12.  
  • 13.  
  • 14.  
  • 15.  
  • 16.  
  • 17.  
  • 18.