creating a child theme in wordpress
DESCRIPTION
The basics of creating a child theme in WordPress and best practicesTRANSCRIPT
![Page 1: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/1.jpg)
CHILD THEMES IN WORDPRESSAMY M. YOUNG
![Page 2: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/2.jpg)
Who am I?
Photographer (http://www.wildgirlproductions.com)Author (http://www.torrent-band.com)Occasional developerCo-Owner of Alternative Hosting
![Page 3: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/3.jpg)
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 workGood parent theme examples - Genesis/Thesis
![Page 4: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/4.jpg)
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
![Page 5: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/5.jpg)
When should I use a child theme?
adding new functions to the functions.phptweaking css
![Page 6: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/6.jpg)
What do I need to create a child theme?
A Parent ThemeA Basic Text Editor (i.e. - Notepad, TextWrangler)An FTP Client (FileZilla, CyberDuck)
![Page 7: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/7.jpg)
CREATION OF A CHILD THEME FOLDERDAVID IS A CHILD THEME OF TWENTY FOURTEEN
![Page 8: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/8.jpg)
THE MOST IMPORTANT FILE!
![Page 9: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/9.jpg)
THE BASIC REQUIREMENTSSTYLE.CSS
![Page 10: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/10.jpg)
BASIC LAYOUTSTYLE.CSS
![Page 11: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/11.jpg)
CALL THE PARENT THEME CSS!
![Page 12: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/12.jpg)
Child Theme or Theme Modification Plugin?
TimeAbilitySupport for the pluginStill good practice to use a child theme
![Page 13: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/13.jpg)
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
![Page 14: Creating a Child Theme in WordPress](https://reader036.vdocument.in/reader036/viewer/2022081412/540422a28d7f729b768b4591/html5/thumbnails/14.jpg)
WHAT DOES FUNCTIONS.PHP LOOK LIKE?