SlideShare a Scribd company logo
@samiKIP www.eatechspace.com #WordCampNairobi
WordPress Parent Themes &
Child Themes
#WordCampNairobi
@samiKIP www.eatechspace.com #WordCampNairobi
What to expect…
• What are Themes?
• What do they do?
• What makes a theme?
• Choosing a theme!
• Child themes!
• Do I need one?
• How can I get one?
@samiKIP www.eatechspace.com #WordCampNairobi
What is a WordPress Theme?
A WordPress theme defines the design and layout of your
website’s front-end, what a visitor sees when they visit your
site.
@samiKIP www.eatechspace.com #WordCampNairobi
What themes do?
Defines the UI and UX.
- Responsive or Static
- If Responsive, Defines the layout on different
devices.
- Defines number of columns (1, 2 or 3)
- Defines what content shows where & How!
@samiKIP www.eatechspace.com #WordCampNairobi
What makes a theme?
REQUIRED
index.php – the
main template file
style.css – the main
style file
ADDITIONAL
Template files
Localization files
CSS files
Graphics
JavaScript
Text files
@samiKIP www.eatechspace.com #WordCampNairobi
Choosing a theme
UI/UX over functionality.
Why?
Add functionality using
plugins so that when you
change your theme, you
retain your website's
functionality.
@samiKIP www.eatechspace.com #WordCampNairobi
Child Themes
A child theme inherits the
functionality and styling of
another theme.
- Allows you to change small aspects of your site’s
appearance while preserving your theme’s look and
functionality.
- Your customizations are kept separate from the parent
theme’s files allowing you to upgrade the parent theme
without affecting the customizations you’ve made to
your site.
- Save on development time since you are not
reinventing the wheel
- Are a great way to start learning about theme
development
What?
When?
Why?
• "I wish my site could..."
• "I hate how this page/post is arranged"
• "I wish that section wasn't here"
• "I don't need this section"
@samiKIP www.eatechspace.com #WordCampNairobi
Creating a Child Theme
Manually Using a Plugin
@samiKIP www.eatechspace.com #WordCampNairobi
Creating a Child Theme Manually
1. Create a Folder
2. Name it parent theme's name
+ "- child" at the end
3. Create style.css and
functions.php
@samiKIP www.eatechspace.com #WordCampNairobi
Child Theme’s style.css
Required Info
Theme Name – needs to be unique to your theme
Template – the name of the parent theme directory.
@samiKIP www.eatechspace.com #WordCampNairobi
Child Theme’s function.php
• Necessary to enqueue styles and scripts. • Adding Any custom php to your theme.
@samiKIP www.eatechspace.com #WordCampNairobi
Enqueueing the Child Themes style.css
Ensures it loads after the parent theme's stylesheet
@samiKIP www.eatechspace.com #WordCampNairobi
Creating Child Theme Using a Plugin
Suggested plugin: Child Theme Configurator
Installation:
Go to “Plugins > Add New.”
Type “child theme” in the “Search” box and click
Locate “Child Theme Configurator”, click “Install Now"
then "Activate"
Navigate to Tools > Child Themes (multisite users go to
Network Admin > Themes > Child Themes).
@samiKIP www.eatechspace.com #WordCampNairobi
Creating Child Theme with Plugin
@samiKIP www.eatechspace.com #WordCampNairobi
Pros of Using a Plugin
• Automatically determines the correct way to set up a child
theme based on the theme you are using.
• Finds the exact style selectors your theme uses and change
properties quickly.
• Copy existing widgets, menus and Customizer options to
child theme
• Automatically enqueues stylesheets
@samiKIP www.eatechspace.com #WordCampNairobi
Installing & Activating a Child Theme
@samiKIP www.eatechspace.com #WordCampNairobi
Editing & Overriding
Parent Theme Templates
Copy the file from parent theme
folder and paste exactly in the
same location inside the child
theme.
Creating Custom
Template Files
Create the template file inside
the Child theme directory
@samiKIP www.eatechspace.com #WordCampNairobi
Key Pointers
• Parent Theme is Still Master
• - Any changes made on the Child Theme doesn't
affect the Parent Theme, but changes made on
Parent Theme will be visible on you website even
if child theme is active.
• Watch Out for Updates
• Overridden files won't update automatically. You'll
have to update them manually.
• Enqueue/Reference any new files/scripts
• WordPress won’t automatically load stylesheets,
scripts and other files for your child theme on the
front-end. To do that you'll have to reference the
location using the wordpress
get_stylesheet_directory and wp_enqueue
functions where you need them loaded.
• Child Copies Master
• A child theme inherits post formats as defined by
the parent theme.
• Do You Really Need a Child Theme?
• If the changes you are making will only affect the
CSS and you are not altering any html or php code
of the theme, it’s better to use just a custom CSS
plugin, that is if your theme doesn't have an option
to include Custom CSS.
• Why Not Just Create you own Theme?
• If you are making extensive customizations –
beyond styles and a few theme files – creating a
parent theme might be a better option than a child
theme. Creating a parent theme allows you to
avoid issues with deprecated code in the future.
This needs to be decided on a case-by-case basis.
@samiKIP www.eatechspace.com #WordCampNairobi
Thank You

More Related Content

What's hot

Themes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUp
Themes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUpThemes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUp
Themes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUp
DaytonWP
 
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and PluginsWordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
Joe Querin
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
Alison Foxall
 
WP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesWP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post Types
Joe Querin
 
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
Utsav Singh Rathour
 
Wcto2014
Wcto2014Wcto2014
Wcto2014
Al Davis
 
Styling WooCommerce
Styling WooCommerceStyling WooCommerce
Styling WooCommerce
Becky Davis
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Jazkarta, Inc.
 
Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012
Tris Hussey
 
Webinar: AngularJS and the WordPress REST API
Webinar: AngularJS and the WordPress REST APIWebinar: AngularJS and the WordPress REST API
Webinar: AngularJS and the WordPress REST API
WP Engine UK
 
Working with WordPress themes
Working with WordPress themesWorking with WordPress themes
Working with WordPress themes
Utsav Singh Rathour
 
Drupal 7: Theming with Omega
Drupal 7: Theming with OmegaDrupal 7: Theming with Omega
Drupal 7: Theming with Omega
Eric Sembrat
 
Why Blogs Are Better
Why Blogs Are BetterWhy Blogs Are Better
Why Blogs Are Better
Tris Hussey
 
Joomla SEO June 2015 - Sydney Joomla User Group
Joomla SEO June 2015 - Sydney Joomla User GroupJoomla SEO June 2015 - Sydney Joomla User Group
Joomla SEO June 2015 - Sydney Joomla User Group
Tim Plummer
 
Dayton word press meetup
Dayton word press meetupDayton word press meetup
Dayton word press meetup
Dustin Hartzler
 
Food blogging at UBC
Food blogging at UBCFood blogging at UBC
Food blogging at UBC
Tris Hussey
 
WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4
David Bisset
 
Wordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytianWordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytian
Grant Merriel
 
How to build your list using wordpress
How to build your list using wordpressHow to build your list using wordpress
How to build your list using wordpress
Heidi Richards Mooney
 
Rockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child ThemesRockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child Themes
Andrew Wikel
 

What's hot (20)

Themes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUp
Themes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUpThemes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUp
Themes: What they Are - How To Use 'Em - DaytonWP November 2012 MeetUp
 
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and PluginsWordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
WP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesWP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post Types
 
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
 
Wcto2014
Wcto2014Wcto2014
Wcto2014
 
Styling WooCommerce
Styling WooCommerceStyling WooCommerce
Styling WooCommerce
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)
 
Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012
 
Webinar: AngularJS and the WordPress REST API
Webinar: AngularJS and the WordPress REST APIWebinar: AngularJS and the WordPress REST API
Webinar: AngularJS and the WordPress REST API
 
Working with WordPress themes
Working with WordPress themesWorking with WordPress themes
Working with WordPress themes
 
Drupal 7: Theming with Omega
Drupal 7: Theming with OmegaDrupal 7: Theming with Omega
Drupal 7: Theming with Omega
 
Why Blogs Are Better
Why Blogs Are BetterWhy Blogs Are Better
Why Blogs Are Better
 
Joomla SEO June 2015 - Sydney Joomla User Group
Joomla SEO June 2015 - Sydney Joomla User GroupJoomla SEO June 2015 - Sydney Joomla User Group
Joomla SEO June 2015 - Sydney Joomla User Group
 
Dayton word press meetup
Dayton word press meetupDayton word press meetup
Dayton word press meetup
 
Food blogging at UBC
Food blogging at UBCFood blogging at UBC
Food blogging at UBC
 
WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4WordPress Theme Workshop: Part 4
WordPress Theme Workshop: Part 4
 
Wordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytianWordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytian
 
How to build your list using wordpress
How to build your list using wordpressHow to build your list using wordpress
How to build your list using wordpress
 
Rockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child ThemesRockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child Themes
 

Similar to WordPress and Child Themes

Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
David Brattoli
 
Child themes
Child themesChild themes
Child themes
bobwlsn
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
openchamp
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
rfair404
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015
Joe Querin
 
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
 
How To Choose A Theme
How To Choose A ThemeHow To Choose A Theme
How To Choose A Theme
Nicky Pink
 
Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.
Jacob Martella
 
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
WPJoburg
 
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
Evan Mullins
 
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
topher1kenobe
 
W pthemes
W pthemesW pthemes
W pthemes
Becky Davis
 
Theming moodle technical
Theming moodle   technicalTheming moodle   technical
Theming moodle technical
Alex Walker
 
HTML/CSS for WordPress
HTML/CSS for WordPressHTML/CSS for WordPress
HTML/CSS for WordPress
Kanchha kaji Prajapati
 
Introduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingIntroduction to Custom WordPress Themeing
Introduction to Custom WordPress Themeing
Jamie Schmid
 
Developing Complex WordPress Sites without Fear of Failure (with MVC)
Developing Complex WordPress Sites without Fear of Failure (with MVC)Developing Complex WordPress Sites without Fear of Failure (with MVC)
Developing Complex WordPress Sites without Fear of Failure (with MVC)
Mike Schinkel
 
WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themes
vegasgeek
 
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?
Edmund Turbin
 
Child Theme
Child ThemeChild Theme
Child Theme
Shinichi Nishikawa
 
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
 

Similar to WordPress and Child Themes (20)

Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
Child themes
Child themesChild themes
Child themes
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
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
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
 
How To Choose A Theme
How To Choose A ThemeHow To Choose A Theme
How To Choose A Theme
 
Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.
 
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
 
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
Introduction to WordPress Child Theming, WordCamp Kansas City, 2015
 
W pthemes
W pthemesW pthemes
W pthemes
 
Theming moodle technical
Theming moodle   technicalTheming moodle   technical
Theming moodle technical
 
HTML/CSS for WordPress
HTML/CSS for WordPressHTML/CSS for WordPress
HTML/CSS for WordPress
 
Introduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingIntroduction to Custom WordPress Themeing
Introduction to Custom WordPress Themeing
 
Developing Complex WordPress Sites without Fear of Failure (with MVC)
Developing Complex WordPress Sites without Fear of Failure (with MVC)Developing Complex WordPress Sites without Fear of Failure (with MVC)
Developing Complex WordPress Sites without Fear of Failure (with MVC)
 
WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themes
 
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?
 
Child Theme
Child ThemeChild Theme
Child Theme
 
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
 

More from nairobiwordcamp

A Beginners Guide to WordPress by Lee Ndegwa
A Beginners Guide to WordPress by Lee NdegwaA Beginners Guide to WordPress by Lee Ndegwa
A Beginners Guide to WordPress by Lee Ndegwa
nairobiwordcamp
 
Email Marketing & Subscription by Peter Kamore
Email Marketing & Subscription by Peter Kamore  Email Marketing & Subscription by Peter Kamore
Email Marketing & Subscription by Peter Kamore
nairobiwordcamp
 
The Basics of User Experience Design by Sam Kiranga
The Basics of User Experience Design by Sam KirangaThe Basics of User Experience Design by Sam Kiranga
The Basics of User Experience Design by Sam Kiranga
nairobiwordcamp
 
WordPress for Charity by Victor Boit
WordPress for Charity  by Victor BoitWordPress for Charity  by Victor Boit
WordPress for Charity by Victor Boit
nairobiwordcamp
 
Why WordPress by Linton Chege
Why WordPress by Linton ChegeWhy WordPress by Linton Chege
Why WordPress by Linton Chege
nairobiwordcamp
 
WordPress Community, The Gift That Keeps on Giving by Joyce Kaduki
WordPress Community, The Gift That Keeps on Giving by Joyce KadukiWordPress Community, The Gift That Keeps on Giving by Joyce Kaduki
WordPress Community, The Gift That Keeps on Giving by Joyce Kaduki
nairobiwordcamp
 
WordPress for Corporae and Personal Blogging by Jean Wandimi
WordPress for Corporae and Personal Blogging by Jean WandimiWordPress for Corporae and Personal Blogging by Jean Wandimi
WordPress for Corporae and Personal Blogging by Jean Wandimi
nairobiwordcamp
 
Content Creation - Get your Readers to Crave Your Blogs by Hannah karanja
Content Creation - Get your Readers to Crave Your Blogs by Hannah karanjaContent Creation - Get your Readers to Crave Your Blogs by Hannah karanja
Content Creation - Get your Readers to Crave Your Blogs by Hannah karanja
nairobiwordcamp
 
Building a Blog that will last by Dickson Otieno
Building a Blog that will last by Dickson OtienoBuilding a Blog that will last by Dickson Otieno
Building a Blog that will last by Dickson Otieno
nairobiwordcamp
 

More from nairobiwordcamp (9)

A Beginners Guide to WordPress by Lee Ndegwa
A Beginners Guide to WordPress by Lee NdegwaA Beginners Guide to WordPress by Lee Ndegwa
A Beginners Guide to WordPress by Lee Ndegwa
 
Email Marketing & Subscription by Peter Kamore
Email Marketing & Subscription by Peter Kamore  Email Marketing & Subscription by Peter Kamore
Email Marketing & Subscription by Peter Kamore
 
The Basics of User Experience Design by Sam Kiranga
The Basics of User Experience Design by Sam KirangaThe Basics of User Experience Design by Sam Kiranga
The Basics of User Experience Design by Sam Kiranga
 
WordPress for Charity by Victor Boit
WordPress for Charity  by Victor BoitWordPress for Charity  by Victor Boit
WordPress for Charity by Victor Boit
 
Why WordPress by Linton Chege
Why WordPress by Linton ChegeWhy WordPress by Linton Chege
Why WordPress by Linton Chege
 
WordPress Community, The Gift That Keeps on Giving by Joyce Kaduki
WordPress Community, The Gift That Keeps on Giving by Joyce KadukiWordPress Community, The Gift That Keeps on Giving by Joyce Kaduki
WordPress Community, The Gift That Keeps on Giving by Joyce Kaduki
 
WordPress for Corporae and Personal Blogging by Jean Wandimi
WordPress for Corporae and Personal Blogging by Jean WandimiWordPress for Corporae and Personal Blogging by Jean Wandimi
WordPress for Corporae and Personal Blogging by Jean Wandimi
 
Content Creation - Get your Readers to Crave Your Blogs by Hannah karanja
Content Creation - Get your Readers to Crave Your Blogs by Hannah karanjaContent Creation - Get your Readers to Crave Your Blogs by Hannah karanja
Content Creation - Get your Readers to Crave Your Blogs by Hannah karanja
 
Building a Blog that will last by Dickson Otieno
Building a Blog that will last by Dickson OtienoBuilding a Blog that will last by Dickson Otieno
Building a Blog that will last by Dickson Otieno
 

Recently uploaded

Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 

Recently uploaded (20)

Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 

WordPress and Child Themes

  • 1. @samiKIP www.eatechspace.com #WordCampNairobi WordPress Parent Themes & Child Themes #WordCampNairobi
  • 2. @samiKIP www.eatechspace.com #WordCampNairobi What to expect… • What are Themes? • What do they do? • What makes a theme? • Choosing a theme! • Child themes! • Do I need one? • How can I get one?
  • 3. @samiKIP www.eatechspace.com #WordCampNairobi What is a WordPress Theme? A WordPress theme defines the design and layout of your website’s front-end, what a visitor sees when they visit your site.
  • 4. @samiKIP www.eatechspace.com #WordCampNairobi What themes do? Defines the UI and UX. - Responsive or Static - If Responsive, Defines the layout on different devices. - Defines number of columns (1, 2 or 3) - Defines what content shows where & How!
  • 5. @samiKIP www.eatechspace.com #WordCampNairobi What makes a theme? REQUIRED index.php – the main template file style.css – the main style file ADDITIONAL Template files Localization files CSS files Graphics JavaScript Text files
  • 6. @samiKIP www.eatechspace.com #WordCampNairobi Choosing a theme UI/UX over functionality. Why? Add functionality using plugins so that when you change your theme, you retain your website's functionality.
  • 7. @samiKIP www.eatechspace.com #WordCampNairobi Child Themes A child theme inherits the functionality and styling of another theme. - Allows you to change small aspects of your site’s appearance while preserving your theme’s look and functionality. - Your customizations are kept separate from the parent theme’s files allowing you to upgrade the parent theme without affecting the customizations you’ve made to your site. - Save on development time since you are not reinventing the wheel - Are a great way to start learning about theme development What? When? Why? • "I wish my site could..." • "I hate how this page/post is arranged" • "I wish that section wasn't here" • "I don't need this section"
  • 8. @samiKIP www.eatechspace.com #WordCampNairobi Creating a Child Theme Manually Using a Plugin
  • 9. @samiKIP www.eatechspace.com #WordCampNairobi Creating a Child Theme Manually 1. Create a Folder 2. Name it parent theme's name + "- child" at the end 3. Create style.css and functions.php
  • 10. @samiKIP www.eatechspace.com #WordCampNairobi Child Theme’s style.css Required Info Theme Name – needs to be unique to your theme Template – the name of the parent theme directory.
  • 11. @samiKIP www.eatechspace.com #WordCampNairobi Child Theme’s function.php • Necessary to enqueue styles and scripts. • Adding Any custom php to your theme.
  • 12. @samiKIP www.eatechspace.com #WordCampNairobi Enqueueing the Child Themes style.css Ensures it loads after the parent theme's stylesheet
  • 13. @samiKIP www.eatechspace.com #WordCampNairobi Creating Child Theme Using a Plugin Suggested plugin: Child Theme Configurator Installation: Go to “Plugins > Add New.” Type “child theme” in the “Search” box and click Locate “Child Theme Configurator”, click “Install Now" then "Activate" Navigate to Tools > Child Themes (multisite users go to Network Admin > Themes > Child Themes).
  • 15. @samiKIP www.eatechspace.com #WordCampNairobi Pros of Using a Plugin • Automatically determines the correct way to set up a child theme based on the theme you are using. • Finds the exact style selectors your theme uses and change properties quickly. • Copy existing widgets, menus and Customizer options to child theme • Automatically enqueues stylesheets
  • 17. @samiKIP www.eatechspace.com #WordCampNairobi Editing & Overriding Parent Theme Templates Copy the file from parent theme folder and paste exactly in the same location inside the child theme. Creating Custom Template Files Create the template file inside the Child theme directory
  • 18. @samiKIP www.eatechspace.com #WordCampNairobi Key Pointers • Parent Theme is Still Master • - Any changes made on the Child Theme doesn't affect the Parent Theme, but changes made on Parent Theme will be visible on you website even if child theme is active. • Watch Out for Updates • Overridden files won't update automatically. You'll have to update them manually. • Enqueue/Reference any new files/scripts • WordPress won’t automatically load stylesheets, scripts and other files for your child theme on the front-end. To do that you'll have to reference the location using the wordpress get_stylesheet_directory and wp_enqueue functions where you need them loaded. • Child Copies Master • A child theme inherits post formats as defined by the parent theme. • Do You Really Need a Child Theme? • If the changes you are making will only affect the CSS and you are not altering any html or php code of the theme, it’s better to use just a custom CSS plugin, that is if your theme doesn't have an option to include Custom CSS. • Why Not Just Create you own Theme? • If you are making extensive customizations – beyond styles and a few theme files – creating a parent theme might be a better option than a child theme. Creating a parent theme allows you to avoid issues with deprecated code in the future. This needs to be decided on a case-by-case basis.