![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#6
|
||||
|
||||
|
Genesis does build a solid framework that allows for rapid building of themes without having to rehash a bunch of code. For example, the average child theme has less than 100 lines of code in the functions.php file and two or fewer template files with less than 50 lines of code each. Counting the style sheet and functions.php file there are usually 4 or fewer template files used in a child theme.
That said, it can be rapidly extended so things can be much more complex. For example, the AgentPress theme is adapted for real estate sites so it has a more complex system to allow for custom taxonomies and post types. Within the theme there is a whopping 7 template files including the functions.php and style sheet. Maybe another example makes more sense. I recently converted a client site to Genesis. The previous theme had nearly 2000 lines of code in the functions.php file alone, plus several lib files that were called for specific tasks like loading meta boxes, creating custom post types, and various other theme components. Then they had about 30 other template files including multiple header, footer, and php files. Once I was done the site had 5 template files including the functions.php file and style sheet and the functions.php file had 114 lines of code. The other template files (not counting the style sheet) had less than 50 lines of code. The end result was a much more lean theme and a generally faster site that was also more flexible.
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us