Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Move Footer widgets and Footer outside Site Container
// Reposition the footer widgets
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
add_action( 'genesis_after', 'genesis_footer_widget_areas' );
// Reposition the footer
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
add_action( 'genesis_after', 'genesis_footer_markup_open', 11 );
add_action( 'genesis_after', 'genesis_do_footer', 12 );
add_action( 'genesis_after', 'genesis_footer_markup_close', 13 );
// Enqueue scripts
add_action( 'wp_enqueue_scripts', 'sk_sticky_footer' );
function sk_sticky_footer() {
wp_enqueue_script( 'sticky-footer', get_stylesheet_directory_uri() . '/js/sticky-footer.js', array( 'jquery' ), '1.0.0' );
}
.sticky.site-footer {
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.