Skip to content

Instantly share code, notes, and snippets.

@pdewouters
Last active December 11, 2015 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pdewouters/4566151 to your computer and use it in GitHub Desktop.
Save pdewouters/4566151 to your computer and use it in GitHub Desktop.
/**
* This function runs when the them is loaded and is responsible for running
* all the action and filter hook functions that customize the theme;
*/
function ssm_theme_setup() {
/** Run some code on the genesis before hook */
add_action( 'genesis_before', 'ssm_open_root_markup' );
// Move the footer outside wrap
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
remove_action( 'genesis_footer', 'genesis_footer_markup_open' );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close' );
// Customize the entire footer
add_action( 'genesis_after', 'genesis_footer_widget_areas', 11 );
add_action( 'genesis_after', 'ssm_close_root_markup', 12 );
add_action( 'genesis_after', 'genesis_footer_markup_open', 13 );
add_action( 'genesis_after', 'ssm_do_custom_footer', 14 );
add_action( 'genesis_after', 'genesis_footer_markup_close', 15 );
}
add_action( 'genesis_setup', 'ssm_theme_setup', 15 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment