Snippets: Move Footer Outside of Boxed Layout

function myprefix_move_footer_outside_of_boxed_wrapper() {

	// Remove footer from wrap
	remove_action( 'wpex_hook_wrap_bottom', 'wpex_footer' );

	// Re-add footer after outer wrap
	add_action( 'wpex_outer_wrap_after', 'wpex_footer' );
	
}
add_action( 'init', 'myprefix_move_footer_outside_of_boxed_wrapper', 999 );

Snippet Type: PHP

Posted Under: Footer

All PHP snippets should be added via a child theme's functions.php file.