[Resolved] Secondary menu dropdown fails

Home Forums Support Secondary menu dropdown fails

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1455542
    David

    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

    #1455570
    Leo
    Staff
    Customer Support

    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/

    #1455599
    David

    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!!
    🙂

    #1455610
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.