How to reorder header items
-
I’d like to reorder the order of appearance of the secondary menu,primary menu and search bar in the header.
In my child theme functions.php file, I changed the order of the hooks:
`// Reorder the header menus
add_action( ‘storefront_header’, ‘storefront_primary_navigation’, 0 );
add_action( ‘storefront_header’, ‘storefront_secondary_navigation’, 20 );`This works, but then the original menu appears below it, so both menus are duplicated.
You said in another post that changing header hooks in child-theme/functions.php file doesn’t work, that you have to ‘init’.
Would you please explain how to make a change to the header in child-theme/functions.php and not have the theme/functions.php repeat.
- The topic ‘How to reorder header items’ is closed to new replies.