Home Forums Basel support forum Override in Child Theme for basel_get_header_configuration

Override in Child Theme for basel_get_header_configuration

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49586

    digitalsun
    Participant

    Hi!
    I want to change the order of the positions in the header, but I don’t know how to override the basel_get_header_configuration function, because I cannot redeclare this function (it is not wrapped in the “if( !function_exists( ‘function_name’ ))”)
    How can I manage to do this?

    #49605

    Artem Temos
    Keymaster

    Hello,

    You can override the header structure array 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

    #49614

    digitalsun
    Participant

    Thanks, it’s working!

    #49619

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘Override in Child Theme for basel_get_header_configuration’ is closed to new replies.