Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] secondary menu at the bottom of the page

Home Forums Support secondary menu at the bottom of the page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #167928
    Tony

    I put this in the wrong topic – apologies for the confusion. (the edit option disappears on posts)

    Is there a way to have a/the secondary menu at the bottom of the page above the copyright bar?

    It would be nice to have the option of moving, say, the ‘contact’ menu item there if the primary menu bar gets busy.

    I tried a widget there but too much white space.

    #167980
    Tom
    Lead Developer
    Lead Developer
    #168139
    Tony

    Pulling the bits together:

    First You need to have secondary nav set to show up before the header

    Does this code go in the functions.php file?

    add_action('after_setup_theme','generate_navigation_below_footer_widgets');
    function generate_navigation_below_footer_widgets()
    {
          remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
          add_action( 'generate_after_footer_widgets', 'generate_add_secondary_navigation_before_header', 7 );
    } 

    Then add this in simple css so any dropdown menus go up.

    .secondary-navigation ul ul {
        top: auto;
        bottom: 40px; /* height of your secondary navigation */
    }
    • This reply was modified 4 years, 5 months ago by Tom.
    #168158
    Tom
    Lead Developer
    Lead Developer
    #168163
    Tony

    Thanks – will keep on file in case primary menu gets busy and I want secondary.
    Might move ‘contact’ down there anyway at some point.

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