Login/register links in "base header"
-
Hello,i would like to add a Login/register link in the base header like screenshot.
thank you
Hi,
You can add it by adding the following code snippet to the child theme functions.php file
add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
function basel_custom_header_configuration() {
return array(
'container' => array(
'wrapp-header' => array(
'logo',
'search_extended',
'right-column' => array(
'wishlist',
'cart',
'mobile_icon',
)
)
),
'secondary-header' => array(
'container' => array(
'categories_menu',
'main_nav',
)
)
);
}
Regards
This has added a second menu with categories.It’s not what I wanted!
Attachments:
You must be
logged in to view attached files.
Try to replace with this one
add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
function basel_custom_header_configuration() {
return array(
'container' => array(
'wrapp-header' => array(
'logo',
'widget_area',
'right-column' => array(
'header_links',
'search',
'wishlist',
'cart',
'mobile_icon',
)
)
),
'navigation-wrap' => array(
'container' => array(
'main_nav'
)
)
);
}
Hello,this works but does not fit well when is in “register/login”.
Screenshot
When is in “my account-logout” cart,search etc.they go from below.
Screenshot
You need to increase right column width option in Theme Settings -> Header -> Header layout.