[Resolved] Secondry Menu

Home Forums Support [Resolved] Secondry Menu

Home Forums Support Secondry Menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #628605
    Rob

    Hi there.

    I wonder if you can help?

    A client is asking for a secondry menu underneath the “slider”, or in this case the page header.

    Is this possible at all?

    I can see various options for its position, but cant quite get it to work

    Here is the link to the screenshot – https://ibb.co/hbEczJ

    #628617
    Leo
    Staff
    Customer Support

    Hi there,

    Try this PHP snippet:

    add_action( 'after_setup_theme','lh_move_secondary_navigation' );
    function lh_move_secondary_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 );
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #628632
    Rob

    Awesome! Thanks.

    Although, it now appears twice πŸ™

    #628639
    Leo
    Staff
    Customer Support

    Edited the code above: https://generatepress.com/forums/topic/secondry-menu/#post-628617

    Can you try it again?

    #628642
    Rob

    Thankyou ever so much for the quick reply πŸ™‚

    Awesome as usual!

    #628646
    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.