Top Banner
An introduction to StudioPress child themes * providing you’re better at making graphics than I am.
35

WordCamp Reno 2011 - Intro to Genesis Child Themes

Sep 01, 2014

Download

Education

vegasgeek

These are the slides from my presentation at WordCamp Reno 2011
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: WordCamp Reno 2011 - Intro to Genesis Child Themes

An introduction to StudioPress child themes

* providing you’re better at making graphics than I am.

Page 2: WordCamp Reno 2011 - Intro to Genesis Child Themes

John HawkinsWordPress Developerat 9seeds.com

WordCamp Groupie

Geek(you probably guessed that part)

Page 3: WordCamp Reno 2011 - Intro to Genesis Child Themes

Genesis is a premium theme.I do not work for StudioPress.

I’m just a bit of a fanboy.

Page 4: WordCamp Reno 2011 - Intro to Genesis Child Themes

Nope!There are plenty of frameworks to choose

from.Headway, Thematic, TwentyTen

Page 5: WordCamp Reno 2011 - Intro to Genesis Child Themes

What is a Child Theme?Requires as little as a style.css file containing

a tag like:Template: genesis

Uses template files from a parent theme, unless you tell it otherwise.

Page 6: WordCamp Reno 2011 - Intro to Genesis Child Themes

What is a Parent Theme?Contains the default theme filesHooks & FiltersBuilt in functionality

Page 7: WordCamp Reno 2011 - Intro to Genesis Child Themes

Parent Vs Child File ListGenesis File List Agency File List

Page 8: WordCamp Reno 2011 - Intro to Genesis Child Themes

http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

Page 9: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 10: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 11: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 12: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 13: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 14: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 15: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 16: WordCamp Reno 2011 - Intro to Genesis Child Themes

Before You StartCreate a new folder in /wp-content/themes/Copy child-theme files in to new folderEdit style.css to rename themeReplace screenshot.png

Page 17: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 18: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 19: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 20: WordCamp Reno 2011 - Intro to Genesis Child Themes

Ended With ThisReplaced 4 graphicsAdded a logoTweaked CSS

Added LogoGoogle FontsFont Colors

Page 21: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 22: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 23: WordCamp Reno 2011 - Intro to Genesis Child Themes

home.php

Page 24: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 25: WordCamp Reno 2011 - Intro to Genesis Child Themes

Using hooks & filters

Page 26: WordCamp Reno 2011 - Intro to Genesis Child Themes

Default Content

Page 27: WordCamp Reno 2011 - Intro to Genesis Child Themes

single.php

Note: Look in the functions.php file of any Genesis child theme for all sorts of goodies like this.

Page 28: WordCamp Reno 2011 - Intro to Genesis Child Themes

Updated Content

Page 29: WordCamp Reno 2011 - Intro to Genesis Child Themes

Custom Content Function

Page 30: WordCamp Reno 2011 - Intro to Genesis Child Themes

Customized Output

Page 31: WordCamp Reno 2011 - Intro to Genesis Child Themes

Remove Actions remove_action(activate_genesis-simple-hooks/

plugin.php,simplehooks_activation_check); remove_action(genesis_init,simplehooks_execute_hooks); remove_action(genesis_init,genesis_theme_support); remove_action(genesis_init,genesis_constants); remove_action(genesis_init,genesis_load_framework); remove_action(genesis_before_loop,genesis_do_breadcrumbs); remove_action(genesis_upgrade,genesis_upgrade_redirect); remove_action(genesis_init,genesis_create_initial_layouts); remove_action(genesis_setup,genesis_register_default_widget_areas

); remove_action(genesis_doctype,genesis_do_doctype); remove_action(genesis_site_title,genesis_seo_site_title); remove_action(genesis_site_description,genesis_seo_site_description

); remove_action(genesis_title,wp_title); remove_action(genesis_meta,genesis_seo_meta_description); remove_action(genesis_meta,genesis_seo_meta_keywords); remove_action(genesis_meta,genesis_robots_meta); remove_action(genesis_meta,genesis_show_theme_info_in_head); remove_action(genesis_meta,genesis_load_favicon); remove_action(genesis_header,genesis_header_markup_open); remove_action(genesis_header,genesis_header_markup_close); remove_action(genesis_header,genesis_do_header); remove_action(genesis_before_footer,genesis_footer_widget_areas); remove_action(genesis_footer,genesis_footer_markup_open); remove_action(genesis_footer,genesis_footer_markup_close); remove_action(genesis_footer,genesis_do_footer); remove_action(genesis_after_header,genesis_do_nav); remove_action(genesis_after_header,genesis_do_subnav);

remove_action(genesis_meta,genesis_load_stylesheet); remove_action(genesis_after_content,genesis_get_sidebar); remove_action(genesis_after_content_sidebar_wrap,genesis_get_sid

ebar_alt); remove_action(genesis_before_post_title,genesis_do_post_format_im

age); remove_action(genesis_post_title,genesis_do_post_title); remove_action(genesis_post_content,genesis_do_post_image); remove_action(genesis_post_content,genesis_do_post_content); remove_action(genesis_loop_else,genesis_do_noposts); remove_action(genesis_before_post_content,genesis_post_info); remove_action(genesis_after_post_content,genesis_post_meta); remove_action(genesis_after_post,genesis_do_author_box_single); remove_action(genesis_after_endwhile,genesis_posts_nav); remove_action(genesis_loop,genesis_do_loop); remove_action(genesis_after_post,genesis_get_comments_template); remove_action(genesis_comments,genesis_do_comments); remove_action(genesis_pings,genesis_do_pings); remove_action(genesis_list_comments,genesis_default_list_comment

s); remove_action(genesis_list_pings,genesis_default_list_pings); remove_action(genesis_comment_form,genesis_do_comment_form); remove_action(genesis_sidebar,genesis_do_sidebar); remove_action(genesis_sidebar_alt,genesis_do_sidebar_alt); remove_action(genesis_before_loop,genesis_do_taxonomy_title_desc

ription); remove_action(genesis_before_loop,genesis_do_author_title_descript

ion); remove_action(genesis_before_loop,genesis_do_author_box_archive); remove_action(genesis_before_header,ifb_include_topnav); remove_action(genesis_footer,ifb_include_footnav);

http://9seeds.com/remove-actions/

Page 32: WordCamp Reno 2011 - Intro to Genesis Child Themes
Page 33: WordCamp Reno 2011 - Intro to Genesis Child Themes

/wp-includes/plugins.php

Page 34: WordCamp Reno 2011 - Intro to Genesis Child Themes

Additional Resourceshttp://codex.wordpress.org/Child_Themeshttp://dev.studiopress.comhttp://studiopress.com/support

Page 35: WordCamp Reno 2011 - Intro to Genesis Child Themes

Thanks for Listening!Email: [email protected]: @vegasgeekSkype: vegasgeek