Last active
December 11, 2015 07:28
-
-
Save pdewouters/4566151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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