CHILD THEMES IN
WORDPRESS
AMY M. YOUNG
Who am I?
Photographer
(http://www.wildgirlproductions.com)
Author (http://www.torrent-band.com)
Occasional developer
Co-O...
What is a child theme?
A theme that inherits functionality from another
WordPress theme (the parent theme).
In theory any ...
Why should I create a
child theme?
Hacking the main theme means it can’t be updated
without losing changes
security risk!
...
When should I use a child
theme?
adding new functions to the functions.php
tweaking css
What do I need to create a
child theme?
A Parent Theme
A Basic Text Editor (i.e. - Notepad, TextWrangler)
An FTP Client (F...
CREATION OF A CHILD THEME FOLDER
DAVID IS A CHILD THEME OF TWENTY FOURTEEN
THE MOST IMPORTANT FILE!
THE BASIC REQUIREMENTS
STYLE.CSS
BASIC LAYOUT
STYLE.CSS
CALL THE PARENT THEME CSS!
Child Theme or Theme
Modification Plugin?
Time
Ability
Support for the plugin
Still good practice to
use a child theme
When to modify
Functions.php
To augment or replace the parent theme's functions.
Beware: if a WordPress Plugin calls the s...
WHAT DOES
FUNCTIONS.
PHP LOOK
LIKE?
QUESTIONS?
Twitter: @amymyoung
website: http://www.amymyoung.com
email: amy@amymyoung.com
Upcoming SlideShare
Loading in …5
×

Creating a Child Theme in WordPress

937 views

Published on

The basics of creating a child theme in WordPress and best practices

Published in: Education, Technology, Business
3 Comments
1 Like
Statistics
Notes
No Downloads
Views
Total views
937
On SlideShare
0
From Embeds
0
Number of Embeds
84
Actions
Shares
0
Downloads
22
Comments
3
Likes
1
Embeds 0
No embeds

No notes for slide

Creating a Child Theme in WordPress

  1. 1. CHILD THEMES IN WORDPRESS AMY M. YOUNG
  2. 2. Who am I? Photographer (http://www.wildgirlproductions.com) Author (http://www.torrent-band.com) Occasional developer Co-Owner of Alternative Hosting
  3. 3. What is a child theme? A theme that inherits functionality from another WordPress theme (the parent theme). In theory any theme can be a parent theme in practice - not all themes will work Good parent theme examples - Genesis/Thesis
  4. 4. Why should I create a child theme? Hacking the main theme means it can’t be updated without losing changes security risk! Speed up development
  5. 5. When should I use a child theme? adding new functions to the functions.php tweaking css
  6. 6. What do I need to create a child theme? A Parent Theme A Basic Text Editor (i.e. - Notepad, TextWrangler) An FTP Client (FileZilla, CyberDuck)
  7. 7. CREATION OF A CHILD THEME FOLDER DAVID IS A CHILD THEME OF TWENTY FOURTEEN
  8. 8. THE MOST IMPORTANT FILE!
  9. 9. THE BASIC REQUIREMENTS STYLE.CSS
  10. 10. BASIC LAYOUT STYLE.CSS
  11. 11. CALL THE PARENT THEME CSS!
  12. 12. Child Theme or Theme Modification Plugin? Time Ability Support for the plugin Still good practice to use a child theme
  13. 13. When to modify Functions.php To augment or replace the parent theme's functions. Beware: if a WordPress Plugin calls the same function, or filter, as you do in your functions file, the results can be unexpected, site disabling. For the most part you want to use plugins to do this plugins will generally give the same result but across all themes
  14. 14. WHAT DOES FUNCTIONS. PHP LOOK LIKE?
  15. 15. QUESTIONS? Twitter: @amymyoung website: http://www.amymyoung.com email: amy@amymyoung.com

×