Log in and register button is gone from mobile view header

For some days the log-in and register button is removed from the mobile view header and moved to the hamburger menu. since there is no customize option for the header I am not able to move that login button out from the hamburger menu.

currently, this is the situation.
image
image

I want this:
image

Hi,

Please try this PHP snippet:

remove_action( 'wp_nav_menu_items', [ hivepress()->template, 'add_menu_items' ], 10, 2 );

add_filter(
	'hivepress/v1/templates/site_header_block',
	function($template){
		return hivepress()->template->merge_blocks(
			$template,
			[
				'site_header_menu' => [
					'blocks' => [						
						'user_account_link'   => [
							'type'   => 'part',
							'path'   => 'user/login/user-login-link',
							'_order' => 9,
						],
					],
				],
			]
		);
	},
	1000
);

However, please note that the dropdown menu will not be available then.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.