Home Forums Basel – Premium Template Changing "My Account" / "Login Register" Menu

This topic contains 1 reply, has 2 voices, and was last updated by Artem Temos Artem Temos 4 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #648

    hazard161
    Customer

    Hey again,

    How do I edit the menu to the left of the wishlist, search, and cart icons.

    Thanks!

    Private Content Hidden
    #650

    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 );
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Changing "My Account" / "Login Register" Menu’ is closed to new replies.