SlideShare une entreprise Scribd logo
1  sur  25
@rhyswynne - @winwaruk #wcmcr
How To Get Your First Child
Theme Off The Ground
WordCamp Manchester 2014
#wcmcr
@rhyswynne - @winwaruk #wcmcr
Hello!
I’m Rhys
@rhyswynne - @winwaruk #wcmcr
@rhyswynne - @winwaruk #wcmcr
@rhyswynne - @winwaruk #wcmcr
@rhyswynne - @winwaruk #wcmcr
A WordPress child theme is a theme that
inherits the functionality of another
(parent) theme
(source: http://codex.wordpress.org/Child_Themes)
@rhyswynne - @winwaruk #wcmcr
Why Use A Child Theme?
• Safe: Make changes to themes without
having changes overwritten.
• Quick: Speeds up developmental time –
functionality has already been written.
• Easy: If you are new to development, this
is a great way to learn.
@rhyswynne - @winwaruk #wcmcr
“Child Themes look the same
as the parent!”
@rhyswynne - @winwaruk #wcmcr
@rhyswynne - @winwaruk #wcmcr
Other Minor Issues
• Because you’re loading 2 themes instead of
one, you can have an impact on
performance.
– Very minimal in most cases, and caching can
stop these issues.
• Can increase complexity if parent theme is
complex.
– Good examples of good starting parent themes
are given at the end of the presentation.
@rhyswynne - @winwaruk #wcmcr
How?
@rhyswynne - @winwaruk #wcmcr
Create Folder For Your Theme
In the wp-contents/theme folder, add a new
folder with name of your theme:-
Good practice states that you
name the theme with the suffix
“-child”, of the parent theme.
@rhyswynne - @winwaruk #wcmcr
Add style.css
• Within your new folder (in our example –
twentythirteen-child – add a file
entitled style.css)
@rhyswynne - @winwaruk #wcmcr
Style.css Contents
http://bit.ly/wcmcr1
@rhyswynne - @winwaruk #wcmcr
On wp-admin….
@rhyswynne - @winwaruk #wcmcr
But…nothing’s changed!
@rhyswynne - @winwaruk #wcmcr
Make Changes to style.css
http://bit.ly/wcmcr20142
@rhyswynne - @winwaruk #wcmcr
Red Text!
@rhyswynne - @winwaruk #wcmcr
Changing template files
• Copy the page.php file from
twentythirteen folder to
twentythirteen-child.
@rhyswynne - @winwaruk #wcmcr
On page.php
• Make changes to the file so you know it’s
different….
http://bit.ly/wcmcr20143
@rhyswynne - @winwaruk #wcmcr
Going to a page….
@rhyswynne - @winwaruk #wcmcr
Functions.php
• The child theme’s functions.php is loaded as
well as the parent functions.php.
http://bit.ly/wcmcrfun
• Name functions with a prefix i.e.
twentythirteen_child_function()
@rhyswynne - @winwaruk #wcmcr
Actions/Filters
• Use the after_setup_theme action to
remove actions/filters from the parent
theme.
http://bit.ly/wcmcrfun
@rhyswynne - @winwaruk #wcmcr
Good Themes To Use as Parent
Themes
Free (Good for Beginners)
• Twenty Eleven, Twenty Twelve, Twenty Thirteen (included in
WordPress)
• Underscores (_s) - http://underscores.me/
• Thematic - http://themeshaper.com/thematic/
Paid (Good for those familiar with HTML
& CSS)
• Genesis - http://www.studiopress.com/
• Peadig - http://peadig.com/
@rhyswynne - @winwaruk #wcmcr
Thank You!
My Site
http://winwar.co.uk/
Twitter
http://twitter.com/rhyswynne
http://twitter.com/winwaruk
Facebook
http://facebook.com/winwaruk
These Slides & Notes
http://bit.ly/wcmcrtalk1
Questions?

Contenu connexe

Tendances

Tipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixTipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixEyal Eizenberg
 
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressThe Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressJonathan Perlman
 
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressThe Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressJonathan Perlman
 
Tailwind: The Future of CSS is Here!
Tailwind: The Future of CSS is Here!Tailwind: The Future of CSS is Here!
Tailwind: The Future of CSS is Here!Abdullah Al Mahi
 
Mind the Gap - State of the Browser 2015
Mind the Gap - State of the Browser 2015Mind the Gap - State of the Browser 2015
Mind the Gap - State of the Browser 2015Christian Heilmann
 
On the Move - Migrations Made Simple
On the Move - Migrations Made SimpleOn the Move - Migrations Made Simple
On the Move - Migrations Made SimpleJonathan Perlman
 
Wordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ WampserverWordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ WampserverKshitij Wagle
 
On the Move, Migrations Made Simple
On the Move, Migrations Made SimpleOn the Move, Migrations Made Simple
On the Move, Migrations Made SimpleJonathan Perlman
 
Angular Remote Conf - Building with Angular & WordPress
Angular Remote Conf - Building with Angular & WordPressAngular Remote Conf - Building with Angular & WordPress
Angular Remote Conf - Building with Angular & WordPressRoy Sivan
 
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the ScaleJS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the ScaleJSFestUA
 
The wheel is spinning but the hamster is almost dead - Smartweb 2015
The wheel is spinning but the hamster is almost dead - Smartweb 2015The wheel is spinning but the hamster is almost dead - Smartweb 2015
The wheel is spinning but the hamster is almost dead - Smartweb 2015Christian Heilmann
 
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012WordCamp Sydney
 
The State of the Web - Helsinki meetup
The State of the Web - Helsinki meetupThe State of the Web - Helsinki meetup
The State of the Web - Helsinki meetupChristian Heilmann
 
Let’s learn how to use JavaScript responsibly and stay up-to-date.
Let’s learn how to use JavaScript responsibly and stay up-to-date. Let’s learn how to use JavaScript responsibly and stay up-to-date.
Let’s learn how to use JavaScript responsibly and stay up-to-date. Christian Heilmann
 
Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...Michael McNeill
 
On the Move, Website Migrations Debunked
On the Move, Website Migrations DebunkedOn the Move, Website Migrations Debunked
On the Move, Website Migrations DebunkedJonathan Perlman
 
The Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesThe Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesAnthony Hortin
 
WordPress Website Setup
WordPress Website SetupWordPress Website Setup
WordPress Website SetupAmelia Smith
 

Tendances (20)

Tipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixTipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - Wix
 
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressThe Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
 
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPressThe Dawson Way of Doing Things: A Study of Our Path Using WordPress
The Dawson Way of Doing Things: A Study of Our Path Using WordPress
 
Tailwind: The Future of CSS is Here!
Tailwind: The Future of CSS is Here!Tailwind: The Future of CSS is Here!
Tailwind: The Future of CSS is Here!
 
Mind the Gap - State of the Browser 2015
Mind the Gap - State of the Browser 2015Mind the Gap - State of the Browser 2015
Mind the Gap - State of the Browser 2015
 
On the Move - Migrations Made Simple
On the Move - Migrations Made SimpleOn the Move - Migrations Made Simple
On the Move - Migrations Made Simple
 
Wordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ WampserverWordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ Wampserver
 
On the Move, Migrations Made Simple
On the Move, Migrations Made SimpleOn the Move, Migrations Made Simple
On the Move, Migrations Made Simple
 
Hostage
HostageHostage
Hostage
 
Angular Remote Conf - Building with Angular & WordPress
Angular Remote Conf - Building with Angular & WordPressAngular Remote Conf - Building with Angular & WordPress
Angular Remote Conf - Building with Angular & WordPress
 
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the ScaleJS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
 
The wheel is spinning but the hamster is almost dead - Smartweb 2015
The wheel is spinning but the hamster is almost dead - Smartweb 2015The wheel is spinning but the hamster is almost dead - Smartweb 2015
The wheel is spinning but the hamster is almost dead - Smartweb 2015
 
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
 
How To Use Dropbox?
How To Use Dropbox?How To Use Dropbox?
How To Use Dropbox?
 
The State of the Web - Helsinki meetup
The State of the Web - Helsinki meetupThe State of the Web - Helsinki meetup
The State of the Web - Helsinki meetup
 
Let’s learn how to use JavaScript responsibly and stay up-to-date.
Let’s learn how to use JavaScript responsibly and stay up-to-date. Let’s learn how to use JavaScript responsibly and stay up-to-date.
Let’s learn how to use JavaScript responsibly and stay up-to-date.
 
Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...Things you should know about WordPress (but were always too afraid to ask): W...
Things you should know about WordPress (but were always too afraid to ask): W...
 
On the Move, Website Migrations Debunked
On the Move, Website Migrations DebunkedOn the Move, Website Migrations Debunked
On the Move, Website Migrations Debunked
 
The Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesThe Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child Themes
 
WordPress Website Setup
WordPress Website SetupWordPress Website Setup
WordPress Website Setup
 

Similaire à How to Get Your First Child Theme Off The Ground

Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012
Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012
Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012WordCamp Sydney
 
Why you should be using WordPress child themes
Why you should be using WordPress child themesWhy you should be using WordPress child themes
Why you should be using WordPress child themesAnthony Hortin
 
Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016Cristina Chumillas
 
WordPress and Child Themes
WordPress and Child ThemesWordPress and Child Themes
WordPress and Child Themesnairobiwordcamp
 
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, 2015topher1kenobe
 
Resources and lessons for using WordPress in your business
Resources and lessons for using WordPress in your businessResources and lessons for using WordPress in your business
Resources and lessons for using WordPress in your businessSteven Slack
 
Why the heck isnt word press a cms
Why the heck isnt word press a cmsWhy the heck isnt word press a cms
Why the heck isnt word press a cmsJohn Eckman
 
"Wordpress for web designers. What, when, how, where" por @nuriarai
"Wordpress for web designers. What, when, how, where" por @nuriarai"Wordpress for web designers. What, when, how, where" por @nuriarai
"Wordpress for web designers. What, when, how, where" por @nuriaraiwebcat
 
WooCommerce Customization Masterclass (WordCamp Dublin 2017)
WooCommerce Customization Masterclass (WordCamp Dublin 2017)WooCommerce Customization Masterclass (WordCamp Dublin 2017)
WooCommerce Customization Masterclass (WordCamp Dublin 2017)Rodolfo Melogli
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themeshenri_makembe
 
Extending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHPExtending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHPrandyhoyt
 
Word press development for non developers
Word press development for non developers Word press development for non developers
Word press development for non developers Jessica C. Gardner
 
Parent and child themes
Parent and child themesParent and child themes
Parent and child themesTom Jenkins
 
The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionTorsten Landsiedel
 
Using Images in WordPress Like a Pro without Being a Graphic Designer
Using Images in WordPress Like a Pro without Being a Graphic DesignerUsing Images in WordPress Like a Pro without Being a Graphic Designer
Using Images in WordPress Like a Pro without Being a Graphic DesignerChristina Hills
 
How to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with PicturesHow to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with PicturesChristina Hills
 
How to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with Pictures How to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with Pictures Christina Hills
 
Performance and UX
Performance and UXPerformance and UX
Performance and UXPeter Rozek
 
Design and Development Trends in WordPress
Design and Development Trends in WordPressDesign and Development Trends in WordPress
Design and Development Trends in WordPressTomas Puig
 

Similaire à How to Get Your First Child Theme Off The Ground (20)

Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012
Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012
Child Theming WordPress - Chris Aprea - WordCamp Sydney 2012
 
Why you should be using WordPress child themes
Why you should be using WordPress child themesWhy you should be using WordPress child themes
Why you should be using WordPress child themes
 
Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016
 
WordPress and Child Themes
WordPress and Child ThemesWordPress and Child Themes
WordPress and Child Themes
 
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
 
Resources and lessons for using WordPress in your business
Resources and lessons for using WordPress in your businessResources and lessons for using WordPress in your business
Resources and lessons for using WordPress in your business
 
Why the heck isnt word press a cms
Why the heck isnt word press a cmsWhy the heck isnt word press a cms
Why the heck isnt word press a cms
 
"Wordpress for web designers. What, when, how, where" por @nuriarai
"Wordpress for web designers. What, when, how, where" por @nuriarai"Wordpress for web designers. What, when, how, where" por @nuriarai
"Wordpress for web designers. What, when, how, where" por @nuriarai
 
WooCommerce Customization Masterclass (WordCamp Dublin 2017)
WooCommerce Customization Masterclass (WordCamp Dublin 2017)WooCommerce Customization Masterclass (WordCamp Dublin 2017)
WooCommerce Customization Masterclass (WordCamp Dublin 2017)
 
Week 9 - Introduction to Child Themes
Week 9  - Introduction to Child ThemesWeek 9  - Introduction to Child Themes
Week 9 - Introduction to Child Themes
 
Extending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHPExtending & Scaling | Dallas PHP
Extending & Scaling | Dallas PHP
 
Word press development for non developers
Word press development for non developers Word press development for non developers
Word press development for non developers
 
Parent and child themes
Parent and child themesParent and child themes
Parent and child themes
 
@wcmtl
@wcmtl@wcmtl
@wcmtl
 
The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano Edition
 
Using Images in WordPress Like a Pro without Being a Graphic Designer
Using Images in WordPress Like a Pro without Being a Graphic DesignerUsing Images in WordPress Like a Pro without Being a Graphic Designer
Using Images in WordPress Like a Pro without Being a Graphic Designer
 
How to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with PicturesHow to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with Pictures
 
How to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with Pictures How to Make Your WordPress Site Come Alive with Pictures
How to Make Your WordPress Site Come Alive with Pictures
 
Performance and UX
Performance and UXPerformance and UX
Performance and UX
 
Design and Development Trends in WordPress
Design and Development Trends in WordPressDesign and Development Trends in WordPress
Design and Development Trends in WordPress
 

Plus de Rhys Wynne

A Developer's Guide to Working With Marketing Teams - WordCamp Glasgow
A Developer's Guide to Working With Marketing Teams - WordCamp GlasgowA Developer's Guide to Working With Marketing Teams - WordCamp Glasgow
A Developer's Guide to Working With Marketing Teams - WordCamp GlasgowRhys Wynne
 
A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019
A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019
A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019Rhys Wynne
 
A Developer's Guide to Working With Marketing Teams
A Developer's Guide to Working With Marketing TeamsA Developer's Guide to Working With Marketing Teams
A Developer's Guide to Working With Marketing TeamsRhys Wynne
 
Forensically Analysing Cornerstone Content - WordCamp Manchester 2018
Forensically Analysing Cornerstone Content  - WordCamp Manchester 2018Forensically Analysing Cornerstone Content  - WordCamp Manchester 2018
Forensically Analysing Cornerstone Content - WordCamp Manchester 2018Rhys Wynne
 
WordPress North East - Forensically Analysing Cornerstone Content
WordPress North East - Forensically Analysing Cornerstone Content  WordPress North East - Forensically Analysing Cornerstone Content
WordPress North East - Forensically Analysing Cornerstone Content Rhys Wynne
 
Forensically analysing cornerstone content
Forensically analysing cornerstone contentForensically analysing cornerstone content
Forensically analysing cornerstone contentRhys Wynne
 
How To Integrate WordPress GDPR Features into your project
How To Integrate WordPress GDPR Features into your projectHow To Integrate WordPress GDPR Features into your project
How To Integrate WordPress GDPR Features into your projectRhys Wynne
 
WordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's Stuff
WordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's StuffWordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's Stuff
WordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's StuffRhys Wynne
 
Mancsas - 5 Top Tools for WordPress SEO in 2016
Mancsas - 5 Top Tools for WordPress SEO in 2016Mancsas - 5 Top Tools for WordPress SEO in 2016
Mancsas - 5 Top Tools for WordPress SEO in 2016Rhys Wynne
 
Sublime Text 2 Tips & Tricks
Sublime Text 2 Tips & TricksSublime Text 2 Tips & Tricks
Sublime Text 2 Tips & TricksRhys Wynne
 

Plus de Rhys Wynne (10)

A Developer's Guide to Working With Marketing Teams - WordCamp Glasgow
A Developer's Guide to Working With Marketing Teams - WordCamp GlasgowA Developer's Guide to Working With Marketing Teams - WordCamp Glasgow
A Developer's Guide to Working With Marketing Teams - WordCamp Glasgow
 
A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019
A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019
A Developer's Guide to Working With Marketing Teams - WordCamp Dublin 2019
 
A Developer's Guide to Working With Marketing Teams
A Developer's Guide to Working With Marketing TeamsA Developer's Guide to Working With Marketing Teams
A Developer's Guide to Working With Marketing Teams
 
Forensically Analysing Cornerstone Content - WordCamp Manchester 2018
Forensically Analysing Cornerstone Content  - WordCamp Manchester 2018Forensically Analysing Cornerstone Content  - WordCamp Manchester 2018
Forensically Analysing Cornerstone Content - WordCamp Manchester 2018
 
WordPress North East - Forensically Analysing Cornerstone Content
WordPress North East - Forensically Analysing Cornerstone Content  WordPress North East - Forensically Analysing Cornerstone Content
WordPress North East - Forensically Analysing Cornerstone Content
 
Forensically analysing cornerstone content
Forensically analysing cornerstone contentForensically analysing cornerstone content
Forensically analysing cornerstone content
 
How To Integrate WordPress GDPR Features into your project
How To Integrate WordPress GDPR Features into your projectHow To Integrate WordPress GDPR Features into your project
How To Integrate WordPress GDPR Features into your project
 
WordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's Stuff
WordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's StuffWordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's Stuff
WordCamp London - Top Tools for WordPress SEO - To Use As Well As Yoast's Stuff
 
Mancsas - 5 Top Tools for WordPress SEO in 2016
Mancsas - 5 Top Tools for WordPress SEO in 2016Mancsas - 5 Top Tools for WordPress SEO in 2016
Mancsas - 5 Top Tools for WordPress SEO in 2016
 
Sublime Text 2 Tips & Tricks
Sublime Text 2 Tips & TricksSublime Text 2 Tips & Tricks
Sublime Text 2 Tips & Tricks
 

Dernier

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Dernier (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

How to Get Your First Child Theme Off The Ground

  • 1. @rhyswynne - @winwaruk #wcmcr How To Get Your First Child Theme Off The Ground WordCamp Manchester 2014 #wcmcr
  • 2. @rhyswynne - @winwaruk #wcmcr Hello! I’m Rhys
  • 6. @rhyswynne - @winwaruk #wcmcr A WordPress child theme is a theme that inherits the functionality of another (parent) theme (source: http://codex.wordpress.org/Child_Themes)
  • 7. @rhyswynne - @winwaruk #wcmcr Why Use A Child Theme? • Safe: Make changes to themes without having changes overwritten. • Quick: Speeds up developmental time – functionality has already been written. • Easy: If you are new to development, this is a great way to learn.
  • 8. @rhyswynne - @winwaruk #wcmcr “Child Themes look the same as the parent!”
  • 10. @rhyswynne - @winwaruk #wcmcr Other Minor Issues • Because you’re loading 2 themes instead of one, you can have an impact on performance. – Very minimal in most cases, and caching can stop these issues. • Can increase complexity if parent theme is complex. – Good examples of good starting parent themes are given at the end of the presentation.
  • 11. @rhyswynne - @winwaruk #wcmcr How?
  • 12. @rhyswynne - @winwaruk #wcmcr Create Folder For Your Theme In the wp-contents/theme folder, add a new folder with name of your theme:- Good practice states that you name the theme with the suffix “-child”, of the parent theme.
  • 13. @rhyswynne - @winwaruk #wcmcr Add style.css • Within your new folder (in our example – twentythirteen-child – add a file entitled style.css)
  • 14. @rhyswynne - @winwaruk #wcmcr Style.css Contents http://bit.ly/wcmcr1
  • 15. @rhyswynne - @winwaruk #wcmcr On wp-admin….
  • 16. @rhyswynne - @winwaruk #wcmcr But…nothing’s changed!
  • 17. @rhyswynne - @winwaruk #wcmcr Make Changes to style.css http://bit.ly/wcmcr20142
  • 18. @rhyswynne - @winwaruk #wcmcr Red Text!
  • 19. @rhyswynne - @winwaruk #wcmcr Changing template files • Copy the page.php file from twentythirteen folder to twentythirteen-child.
  • 20. @rhyswynne - @winwaruk #wcmcr On page.php • Make changes to the file so you know it’s different…. http://bit.ly/wcmcr20143
  • 21. @rhyswynne - @winwaruk #wcmcr Going to a page….
  • 22. @rhyswynne - @winwaruk #wcmcr Functions.php • The child theme’s functions.php is loaded as well as the parent functions.php. http://bit.ly/wcmcrfun • Name functions with a prefix i.e. twentythirteen_child_function()
  • 23. @rhyswynne - @winwaruk #wcmcr Actions/Filters • Use the after_setup_theme action to remove actions/filters from the parent theme. http://bit.ly/wcmcrfun
  • 24. @rhyswynne - @winwaruk #wcmcr Good Themes To Use as Parent Themes Free (Good for Beginners) • Twenty Eleven, Twenty Twelve, Twenty Thirteen (included in WordPress) • Underscores (_s) - http://underscores.me/ • Thematic - http://themeshaper.com/thematic/ Paid (Good for those familiar with HTML & CSS) • Genesis - http://www.studiopress.com/ • Peadig - http://peadig.com/
  • 25. @rhyswynne - @winwaruk #wcmcr Thank You! My Site http://winwar.co.uk/ Twitter http://twitter.com/rhyswynne http://twitter.com/winwaruk Facebook http://facebook.com/winwaruk These Slides & Notes http://bit.ly/wcmcrtalk1 Questions?