skip to Main Content

Move Header To Site Footer

// Move Header To Site Footer
function myprefix_move_header_to_footer() {

	// Unhook header
	remove_action( 'wpex_hook_wrap_top', 'wpex_header' );

	// Re-hook header
	// Change priority if you want it after the widget footer
	add_action( 'wpex_hook_wrap_bottom', 'wpex_header', 0 );

}
add_action( 'init', 'myprefix_move_header_to_footer', 99 );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top