Log in and register button is gone

Please make sure that you created a menu and assigned it to the Header location in Appearance/Menus, the account/login menu link should appear as the last item then. If you want to return to the old account link displayed in the top right area please try this code 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
);

Please note that this doesn’t support a new drop-down menu feature for the account link.

1 Like