Skip to content

Snippet: Move Topbar Under Main Header

function myprefix_move_topbar() {

	// Remove from wrap top
	remove_action( 'wpex_hook_wrap_top', 'wpex_top_bar', 5 );

	// Re-add to header after hook
	add_action( 'wpex_hook_header_after', 'wpex_top_bar' );

}
add_action( 'init', 'myprefix_move_topbar' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top