Archived topic
Change submenu dropdown upwards for a footer menu
5 replies · Started by Unipoliza SL on October 25, 2019
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.
The question is, how can i make the sub-menu show upwards instead?
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.
I can't really send the link cause the site is still in localhost.
Hmmm - try this:
@media (min-width: 769px) {
.secondary-navigation ul ul {
bottom: 50px;
}
}
adjust the bottom property to match the height of the nav.
Thanks! It worked perfectly
That was easier then expected lol - glad to be of help.