Archived topic
Secondary menu dropdown fails
3 replies · Started by David on September 23, 2020
Hi,
Thanks for your support.
I have create a top-bar div in child theme with wp_body_open hook and insert in it in functions.php:
echo "<div class='gp-top-header grid-container' style='background-color:brown'>";
wp_nav_menu( array(
'theme_location' => 'top-menu',
'container_class' => 'top-menu-class' ) );
echo "</div>";
This insert a secondary menu in this top-bar, but the dropdown submenu doesnt show fine, it appears as you can see in the image: https://ibb.co/mXdnkSF
"Iniciar sesión" has a submenu which contains Contacto and Registrarse links and stands fixed in screen, dont do the dropdown.
What I have to do to make the submenu dropdown works?
Thanks in advanced
Hi there,
Not sure if I fully understand.
Have you considered just using the secondary navigation instead of custom coding?
https://docs.generatepress.com/article/secondary-navigation-layout-overview/
Oh my god! I didn't know that there was an option like that!!
I have to study in depth the GeneratePress plugins.
Thanks, resolved!!
:)
No problem :)