SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
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.
 
 
 
 
 
 
 
 
 

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?SANGHEE SHIN
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesDavid Newbury
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.francesco barbera
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Adtran
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfinfogdgmi
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 

Kürzlich hochgeladen (20)

COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?Do we need a new standard for visualizing the invisible?
Do we need a new standard for visualizing the invisible?
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.Digital magic. A small project for controlling smart light bulbs.
Digital magic. A small project for controlling smart light bulbs.
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdf
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 

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.