Wordpress Child ThemingAn Introduction to Wordpress Theme Development with Wordpress Child ThemesMohamadAgusSya’banCode Name: AbanNestaFront-end Web Designer at PT. Jerbee IndonesiaWeblog – http://www.aban.web.idImage courtesy of beginnerbaby.com
Are you a WordPress site developer wanting to significantly cut your development time by using your own WordPress Theme Framework?
Technically, a Wordpress site developer has some common problemsImage courtesy of sxc.hu
How much time do you have?Image courtesy of gkjwpacitan.wordpress.com
How complex is your wordpress theme design?Image courtesy of sxc.hu
How bad is your boss? :pImage courtesy of chickenstrip.wordpress.com
So, you need something that could help you  to develop sites faster, has strong foundation and scalableImage courtesy of internetrentalmachines.com
Let’s do “Child-theming”!The smart way to modify wordpress themesImage courtesy of best-family-photography-tips.com
What is Child Theme, anyway?A small subset of template files that allow you tomake changes and customizations to anyWordPress parent theme without altering theparent theme’s coding.
First, let’s take a tour…http://www.psdthemes.comDesign by: PSD ThemesParent theme: Thematichttp://www.wpcharity.comDesign by: M.ZamroniParent theme: Twentytenhttp://thesisthemehq.com Design by: Thesis Them HQParent theme: Thesis
Find it useful?Well, you have to first find a Mate.TwentytenThematicThesis,SandboxArthemiaetc.Image courtesy of cecep.web.id
How to pick a good Parent theme*• Don’t just look at the design.• Check to see if the X-HTML & CSS mark-up   validates according to W3C standards.• Is there a forum or structured system for support or bug  reporting?• Make sure that you fully understand how a Parent  theme works before building a Child theme with it.*Thx to Allan Cole (http://www.allancole.com)Image courtesy of sxc.hu
Now what?You will need wedding rings, right? Or someflowers is way better. In this case, few things youneed to make a child theme…Image courtesy of sxc.hu
NecessaryFTP access to your site (sites on wordpress.com don’t offer this) and an FTP client.A text/code editor (like the Windows Notepad, but preferably better).Your chosen parent theme, ofc.
Directory Structurepublic_htmlwp-content			themes (directory where all themes 		are) 				parent theme (directory of our 			parent theme) 				childtheme(directory of our 			child theme; can be named 			anything) style.css (required file in a child theme; must be named style.css) Image courtesy of diamond.ac.uk
RequirementA Parent theme (your chosen theme).A Stylesheetstyles.cssAn images folder (images) *A Functions file functions.php *Re-Write templates header.php *A Screenshot screenshot.png ** Optional
Stylesheet Setting/* Theme Name: Child Theme NameTheme URI: http://your-theme-download.comDescription: Child theme for the Twenty Ten themeVersion: 1.0Author: Your name here Author URI: http://your-url.comTemplate: twentytenTags: 2 columns, fixed width, etc*/@import url("../twentyten/style.css"); /* Insert your custom css styles below */Image courtesy of laughingsquid.com
Note that…There must be no other CSS rules above the@import rule. If you put other rules above it, itwill be invalidated and the stylesheet of theparent will not be imported.
And also…If there are two declarations conflict, while theyare equal in everything, they are different inthis: The parent’s comes from an importedstylesheet, while the child’s is in the stylesheetitself. So, The child wins!Image courtesy themommytimes.com
GoodiesYou really made it all the way down here? Resources:Codex: Child Themeshttp://codex.wordpress.org/Child_ThemesHow To Modify WordPress Themes The Smart Wayhttp://themeshaper.com/modify-wordpress-themes/How to make a child theme for WordPress: A pictorial introduction for beginnershttp://op111.net/53/Image courtesy christopher-scott.com
Let’s practice…Image courtesy accenture.com

Child Theming: An Introduction to Wordpress Theme Development with Wordpress Child Themes

  • 1.
    Wordpress Child ThemingAnIntroduction to Wordpress Theme Development with Wordpress Child ThemesMohamadAgusSya’banCode Name: AbanNestaFront-end Web Designer at PT. Jerbee IndonesiaWeblog – http://www.aban.web.idImage courtesy of beginnerbaby.com
  • 2.
    Are you aWordPress site developer wanting to significantly cut your development time by using your own WordPress Theme Framework?
  • 3.
    Technically, a Wordpresssite developer has some common problemsImage courtesy of sxc.hu
  • 4.
    How much timedo you have?Image courtesy of gkjwpacitan.wordpress.com
  • 5.
    How complex isyour wordpress theme design?Image courtesy of sxc.hu
  • 6.
    How bad isyour boss? :pImage courtesy of chickenstrip.wordpress.com
  • 7.
    So, you needsomething that could help you to develop sites faster, has strong foundation and scalableImage courtesy of internetrentalmachines.com
  • 8.
    Let’s do “Child-theming”!Thesmart way to modify wordpress themesImage courtesy of best-family-photography-tips.com
  • 9.
    What is ChildTheme, anyway?A small subset of template files that allow you tomake changes and customizations to anyWordPress parent theme without altering theparent theme’s coding.
  • 10.
    First, let’s takea tour…http://www.psdthemes.comDesign by: PSD ThemesParent theme: Thematichttp://www.wpcharity.comDesign by: M.ZamroniParent theme: Twentytenhttp://thesisthemehq.com Design by: Thesis Them HQParent theme: Thesis
  • 11.
    Find it useful?Well,you have to first find a Mate.TwentytenThematicThesis,SandboxArthemiaetc.Image courtesy of cecep.web.id
  • 12.
    How to picka good Parent theme*• Don’t just look at the design.• Check to see if the X-HTML & CSS mark-up validates according to W3C standards.• Is there a forum or structured system for support or bug reporting?• Make sure that you fully understand how a Parent theme works before building a Child theme with it.*Thx to Allan Cole (http://www.allancole.com)Image courtesy of sxc.hu
  • 13.
    Now what?You willneed wedding rings, right? Or someflowers is way better. In this case, few things youneed to make a child theme…Image courtesy of sxc.hu
  • 14.
    NecessaryFTP access toyour site (sites on wordpress.com don’t offer this) and an FTP client.A text/code editor (like the Windows Notepad, but preferably better).Your chosen parent theme, ofc.
  • 15.
    Directory Structurepublic_htmlwp-content themes (directorywhere all themes are) parent theme (directory of our parent theme) childtheme(directory of our child theme; can be named anything) style.css (required file in a child theme; must be named style.css) Image courtesy of diamond.ac.uk
  • 16.
    RequirementA Parent theme(your chosen theme).A Stylesheetstyles.cssAn images folder (images) *A Functions file functions.php *Re-Write templates header.php *A Screenshot screenshot.png ** Optional
  • 17.
    Stylesheet Setting/* ThemeName: Child Theme NameTheme URI: http://your-theme-download.comDescription: Child theme for the Twenty Ten themeVersion: 1.0Author: Your name here Author URI: http://your-url.comTemplate: twentytenTags: 2 columns, fixed width, etc*/@import url("../twentyten/style.css"); /* Insert your custom css styles below */Image courtesy of laughingsquid.com
  • 18.
    Note that…There mustbe no other CSS rules above the@import rule. If you put other rules above it, itwill be invalidated and the stylesheet of theparent will not be imported.
  • 19.
    And also…If thereare two declarations conflict, while theyare equal in everything, they are different inthis: The parent’s comes from an importedstylesheet, while the child’s is in the stylesheetitself. So, The child wins!Image courtesy themommytimes.com
  • 20.
    GoodiesYou really madeit all the way down here? Resources:Codex: Child Themeshttp://codex.wordpress.org/Child_ThemesHow To Modify WordPress Themes The Smart Wayhttp://themeshaper.com/modify-wordpress-themes/How to make a child theme for WordPress: A pictorial introduction for beginnershttp://op111.net/53/Image courtesy christopher-scott.com
  • 21.