Home › Forums › Basel support forum › Changing "My Account" / "Login Register" Menu › Reply To: Changing "My Account" / "Login Register" Menu
April 11, 2016 at 8:24 am
#650
Artem Temos
Keymaster
Hello,
Place the following code into your functions.php inside the child theme to edit this small navigation next to logo
function basel_get_header_links() {
$links = array();
if( ! basel_woocommerce_installed() ) return $links;
$account_link = get_permalink( get_option('woocommerce_myaccount_page_id') );
if( basel_get_opt( 'login_links' ) ) {
if( is_user_logged_in() ) {
$links[] = array(
'label' => esc_html__('My Account', 'basel'),
'url' => $account_link
);
} else {
$links[] = array(
'label' => esc_html__('Login / Register', 'basel'),
'url' => $account_link
);
}
}
$links[] = array(
'label' => esc_html__('Custom link', 'basel'),
'url' => '#test'
);
return apply_filters( 'basel_get_header_links', $links );
}