[Resolved] Change submenu dropdown upwards for a footer menu

Home Forums Support Change submenu dropdown upwards for a footer menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1044033
    Unipoliza SL

    So, I actually have a secondary navigation menu on my footer, thanks to this code I copied from the forum:

    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 );
    } 

    It works fantastic, I have the menu on the footer. The problem is that the menu has a sub-menu, and the elements of the submenu dropdown, which clearly is a problem since it’s in the footer.
    sub-menu problem

    The question is, how can i make the sub-menu show upwards instead?

    #1044090
    David
    Staff
    Customer Support

    Hi there,

    not sure – can you share a link to your site so i can take a look.
    You can edit your first post in this topic and use the Site URL field to share it privately.

    #1044399
    Unipoliza SL

    I can’t really send the link cause the site is still in localhost.

    #1044447
    David
    Staff
    Customer Support

    Hmmm – try this:

    @media (min-width: 769px) {
    
        .secondary-navigation ul ul {
            bottom: 50px;
        }
    
    }

    adjust the bottom property to match the height of the nav.

    #1047619
    Unipoliza SL

    Thanks! It worked perfectly

    #1047690
    David
    Staff
    Customer Support

    That was easier then expected lol – glad to be of help.

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