Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Creating a Child Theme in WordPress

1,052 views

Published on

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

Published in: Education, Technology, Business

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

×