theme frameworks & child themes

15
Theme Frameworks & Child Themes Pros and Cons

Upload: chris-olbekson

Post on 15-May-2015

1.637 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Theme frameworks & child themes

Theme Frameworks & Child ThemesPros and Cons

Page 2: Theme frameworks & child themes

What is a framework?

Page 3: Theme frameworks & child themes

What is a framework?

A WordPress Theme Framework is a reliably coded WordPress theme which serves as a foundation for future themes.

A theme framework is a set of conventions to use for developing WordPress [parent] themes.

Page 4: Theme frameworks & child themes

What is a child theme?

Page 5: Theme frameworks & child themes

What is a child theme?

A child theme is something users should be creating so that they can customize the look and functionality of their site. The child theme inherits all of its functionality from a single parent theme.

Page 6: Theme frameworks & child themes

How do child themes work?

Page 7: Theme frameworks & child themes

How do child themes work?

Child themes build on the existing parent theme by over riding or modifying the parent themes existing functions and templates/*

Theme Name: DemoChildThemeTheme URI: www.example.com Description: Use this theme to start your Child ThemeAuthor: Chris Olbekson

Author URI: http://c3mdigital.com Template: frameworkname */

Page 8: Theme frameworks & child themes

What is a parent theme?

Page 9: Theme frameworks & child themes

What is a parent theme?

Nearly all WordPress themes are parent themes. Only those called “child themes” are not parent themes.Parent themes should house the theme design, functionality, and the templates required for running the theme in WordPress.You can use a framework to build a parent theme, but the framework is not a parent theme itself.

Page 10: Theme frameworks & child themes

Pros of using child themes

Page 11: Theme frameworks & child themes

Why create a child theme

•Ability to build just about any type of site.•If you don’t know to create your own

WordPress theme from scratch•Valid and semantic XHTML•If you want to start to learn about

WordPress theme design•Web developers that need a fast

turnaround for their clients websites•Prevents updates from overwriting mods

Page 12: Theme frameworks & child themes

Why not?

Page 13: Theme frameworks & child themes

Why not?

•Confusing to clients•Unneeded loading of functions, scripts,

styles•Lowered performance (too much code)•Hard to override some css styles•Confusion as to which files are being

edited in the theme editor•Problematic because the child theme

might eventually need an update

Page 14: Theme frameworks & child themes

Conclusion & Discussion

What you should really be creating is a parent theme.

Child themes from theme developers should be nothing more than a stylesheet and a few functions. This idea of releasing advanced child themes just creates the same problem child themes were meant to solve: upgradability.