Home Forums Basel support forum Login/register links in "base header"

Login/register links in "base header"

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

    despina.mina
    Participant

    Hello,i would like to add a Login/register link in the base header like screenshot.
    thank you

    #22611

    Artem Temos
    Keymaster

    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

    #22615

    despina.mina
    Participant

    This has added a second menu with categories.It’s not what I wanted!

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

    Artem Temos
    Keymaster

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

    despina.mina
    Participant

    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

    #22660

    Artem Temos
    Keymaster

    You need to increase right column width option in Theme Settings -> Header -> Header layout.

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