Home Forums Basel support forum Login / resgistration / logout, in this menu

Login / resgistration / logout, in this menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #52533

    riuscode
    Participant

    Hi,

    I do not know how to put the login / registration options, etc here.

    Thanks you.

    Attachments:
    You must be logged in to view attached files.
    #52540

    Artem Temos
    Keymaster

    Hi,

    By default, this header layout doesn’t have Login/Register link. But you can add it manually placing the following code snippet to the functions.php file in the child theme.

    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'
    			)
    		)	
    	);
    }

    Regards

    #52543

    riuscode
    Participant

    Thank you for your help, but

    When the change is made, the whole menu is changed, the option “Navigate by categories” no longer appears, in addition to changing the structure of the menu.

    Attachments:
    You must be logged in to view attached files.
    #52559

    Artem Temos
    Keymaster

    Try to replace it with this code instead

    add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
    
    function basel_custom_header_configuration() {
    
    	return array(
    				'container' => array(
    					'wrapp-header' => array(
    						'logo',
    						'main_nav',
    						'right-column' => array(
    					                'header_links',
    							'wishlist',
    							'cart',
    							'mobile_icon',
    						)
    					)	
    				),
    				'secondary-header' => array(
    					'container' => array(
    						'categories_menu',
    						'search_extended',
    					)
    				)	
    	);
    }
    #53483

    riuscode
    Participant

    Muchas gracias, esto funciona :D.

    #53494

    Artem Temos
    Keymaster

    You are welcome!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Login / resgistration / logout, in this menu’ is closed to new replies.