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.
I want this:
andrii
February 8, 2023, 2:16pm
#4
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.
system
closed
March 10, 2023, 2:17pm
#5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.