Override in Child Theme for basel_get_header_configuration
-
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?
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
The topic ‘Override in Child Theme for basel_get_header_configuration’ is closed to new replies.