[Resolved] Change location of element or secondary nav menu

Home Forums Support [Resolved] Change location of element or secondary nav menu

Home Forums Support Change location of element or secondary nav menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1390367
    William

    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

    #1390646
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this is what you are after:
    https://generatepress.com/forums/topic/move-secondary-navigation-after-header-element/

    Let me know if this helps ๐Ÿ™‚

    #1391137
    William

    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?

    #1391686
    Leo
    Staff
    Customer Support

    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 );
    }
    #1391709
    William

    That’s great thank you!

    #1391826
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.