Site logo

Archived topic

Move secondary navigation after header element

3 replies · Started by valentin on August 3, 2020

Viewing posts 1–4 of 4

Hi there,

After a look in the forum for answers I tried this:

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

Priority: 15 / Execute PHP / the secondary nav location is seted to No Navigation in customizer.
I have tested the code for one page only but it displays me the code instead of the navigation.

Could you please let me know what have I done wrong.

Thank you.

Thanks

You're welcome

This archived topic is closed to new replies.