[Resolved] Move menu above new container

Home Forums Support [Resolved] Move menu above new container

Home Forums Support Move menu above new container

  • This topic has 8 replies, 3 voices, and was last updated 7 years ago by Tom.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #301994
    Chad Biggs

    I’ve added a new container wrapper <div class="full-container grid-container grid-parent">. How can I move the secondary menu on top of the new container?

    Thank you;
    -Chad

    #302066
    Leo
    Staff
    Customer Support

    Hi Chad,

    Can you provide a link to your site so we can see where they are located right now?

    Thanks!

    #302087
    Chad Biggs
    #302266
    Chad Biggs
    #302360
    Tom
    Lead Developer
    Lead Developer

    Try adding this function:

    add_action( 'after_setup_theme','tu_move_secondary_nav' );
    function tu_move_secondary_nav() {
        remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
        add_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 1 );
    }
    #302443
    Chad Biggs

    I am trying to get the menu above the top border but that did not move the menu.

    #302616
    Tom
    Lead Developer
    Lead Developer

    What hook did you add your top container HTML into?

    #302660
    Chad Biggs

    You got me. I put it wp_head… I moved it to before head and now it is correct. Thank you!

    #302814
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! 🙂

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