Site logo

Archived topic

Change location of element or secondary nav menu

5 replies · Started by William on August 6, 2020

Viewing posts 1–6 of 6

Hi there,

Is there a way to change where the element is located or secondary nav menu in such a way so that the ordering from top to bottom goes Elements and then the secondary nav menu?

For example, here, the ordering is currently secondary nav menu and then element.

Many thanks,

Will

Hi there,
That gets the menu into the right position, thanks. I have the secondary nav menu as 'Below Header' too in customize.

Problem is that the above element menu still shows - how do we remove this?

Can you try this instead?

add_action('after_setup_theme','craig_move_navigation');
function craig_move_navigation() {
	remove_action('generate_after_header', 'generate_add_secondary_navigation_after_header', 7 );
	add_action('generate_after_header', 'generate_add_secondary_navigation_after_header', 15 );
}

That's great thank you!

No problem :)

This archived topic is closed to new replies.