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.

Intro to StudioPress child themes

2,070 views

Published on

Slides from my presentation at WordCamp Reno 2011: From start to awesome in under an hour. An introduction to StudioPress child themes.

Published in: Education, Technology, Business
  • Be the first to comment

Intro to StudioPress child themes

  1. 1. From Start to Awesome in Under an Hour*<br />An introduction to StudioPress child themes<br />* providing you’re better at making graphics than I am.<br />
  2. 2. John Hawkins<br />WordPress Developerat 9seeds.com<br />WordCamp Groupie<br />Geek(you probably guessed that part)<br />
  3. 3. DISCLAIMER!<br />Genesis is a premium theme.<br />I do not work for StudioPress.<br />I’m just a bit of a fanboy.<br />
  4. 4. Do I have to use Genesis?<br />Nope!<br />There are plenty of frameworks to choose from.<br />Headway, Thematic, TwentyTen<br />
  5. 5. What is a Child Theme?<br />Requires as little as a style.css file containing a tag like:Template: genesis<br />Uses template files from a parent theme, unless you tell it otherwise.<br />
  6. 6. What is a Parent Theme?<br />Contains the default theme files<br />Hooks & Filters<br />Built in functionality<br />
  7. 7. Parent Vs Child File List<br />Genesis File List<br />Agency File List<br />
  8. 8. Template Hierarchy<br />http://codex.wordpress.org/images/1/18/Template_Hierarchy.png<br />
  9. 9. Genesis Options Page<br />
  10. 10. Genesis Widgets<br />
  11. 11. Category/Page Nav Menus<br />
  12. 12. User Profile<br />
  13. 13. Featured Page<br />
  14. 14. Featured Posts<br />
  15. 15. Time to Customize<br />
  16. 16. Before You Start<br />Create a new folder in /wp-content/themes/<br />Copy child-theme files in to new folder<br />Edit style.css to rename theme<br />Replace screenshot.png<br />
  17. 17. Swapping Graphics, FTW!<br />
  18. 18. Inspect Element<br />
  19. 19. Started With This<br />
  20. 20. Ended With This<br />Replaced 4 graphics<br />Added a logo<br />Tweaked CSS<br />Added Logo<br />Google Fonts<br />Font Colors<br />
  21. 21. Tweaking a Template<br />
  22. 22.
  23. 23. home.php<br />
  24. 24.
  25. 25. Custom Post Output<br />Using hooks & filters<br />
  26. 26. Default Content<br />
  27. 27. single.php<br />Note: Look in the functions.php file of any Genesis child theme for all sorts of goodies like this.<br />
  28. 28. Updated Content<br />
  29. 29. Custom Content Function<br />
  30. 30. Customized Output<br />
  31. 31. Remove Actions<br />remove_action(activate_genesis-simple-hooks/plugin.php,simplehooks_activation_check);<br />remove_action(genesis_init,simplehooks_execute_hooks);<br />remove_action(genesis_init,genesis_theme_support);<br />remove_action(genesis_init,genesis_constants);<br />remove_action(genesis_init,genesis_load_framework);<br />remove_action(genesis_before_loop,genesis_do_breadcrumbs);<br />remove_action(genesis_upgrade,genesis_upgrade_redirect);<br />remove_action(genesis_init,genesis_create_initial_layouts);<br />remove_action(genesis_setup,genesis_register_default_widget_areas);<br />remove_action(genesis_doctype,genesis_do_doctype);<br />remove_action(genesis_site_title,genesis_seo_site_title);<br />remove_action(genesis_site_description,genesis_seo_site_description);<br />remove_action(genesis_title,wp_title);<br />remove_action(genesis_meta,genesis_seo_meta_description);<br />remove_action(genesis_meta,genesis_seo_meta_keywords);<br />remove_action(genesis_meta,genesis_robots_meta);<br />remove_action(genesis_meta,genesis_show_theme_info_in_head);<br />remove_action(genesis_meta,genesis_load_favicon);<br />remove_action(genesis_header,genesis_header_markup_open);<br />remove_action(genesis_header,genesis_header_markup_close);<br />remove_action(genesis_header,genesis_do_header);<br />remove_action(genesis_before_footer,genesis_footer_widget_areas);<br />remove_action(genesis_footer,genesis_footer_markup_open);<br />remove_action(genesis_footer,genesis_footer_markup_close);<br />remove_action(genesis_footer,genesis_do_footer);<br />remove_action(genesis_after_header,genesis_do_nav);<br />remove_action(genesis_after_header,genesis_do_subnav);<br />remove_action(genesis_meta,genesis_load_stylesheet);<br />remove_action(genesis_after_content,genesis_get_sidebar);<br />remove_action(genesis_after_content_sidebar_wrap,genesis_get_sidebar_alt);<br />remove_action(genesis_before_post_title,genesis_do_post_format_image);<br />remove_action(genesis_post_title,genesis_do_post_title);<br />remove_action(genesis_post_content,genesis_do_post_image);<br />remove_action(genesis_post_content,genesis_do_post_content);<br />remove_action(genesis_loop_else,genesis_do_noposts);<br />remove_action(genesis_before_post_content,genesis_post_info);<br />remove_action(genesis_after_post_content,genesis_post_meta);<br />remove_action(genesis_after_post,genesis_do_author_box_single);<br />remove_action(genesis_after_endwhile,genesis_posts_nav);<br />remove_action(genesis_loop,genesis_do_loop);<br />remove_action(genesis_after_post,genesis_get_comments_template);<br />remove_action(genesis_comments,genesis_do_comments);<br />remove_action(genesis_pings,genesis_do_pings);<br />remove_action(genesis_list_comments,genesis_default_list_comments);<br />remove_action(genesis_list_pings,genesis_default_list_pings);<br />remove_action(genesis_comment_form,genesis_do_comment_form);<br />remove_action(genesis_sidebar,genesis_do_sidebar);<br />remove_action(genesis_sidebar_alt,genesis_do_sidebar_alt);<br />remove_action(genesis_before_loop,genesis_do_taxonomy_title_description);<br />remove_action(genesis_before_loop,genesis_do_author_title_description);<br />remove_action(genesis_before_loop,genesis_do_author_box_archive);<br />remove_action(genesis_before_header,ifb_include_topnav);<br />remove_action(genesis_footer,ifb_include_footnav);<br />http://9seeds.com/remove-actions/<br />
  32. 32.
  33. 33. /wp-includes/plugins.php<br />
  34. 34. Additional Resources<br />http://codex.wordpress.org/Child_Themes<br />http://dev.studiopress.com<br />http://studiopress.com/support<br />
  35. 35. Thanks for Listening!<br />Email: john@9seeds.com<br />Twitter: @vegasgeek<br />Skype: vegasgeek<br />

×