WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields: Nav Menu Field
[resolved] Drop-down menu not showing (7 posts)

  1. mattsalvato
    Member
    Posted 1 year ago #

    Hi,

    Thanks for such a great, functional plugin!
    Im using the Nav Menu field plugin for my site http://hyattandweber.nextlevelclient.com/. However, the drop-down menus aren't showing up upon hover, despite me carrying over all the CSS classes. Any idea why? (It should function like the menu on this site: http://hyattweber.nextlevelclient.com/)

    Thanks again!

    -Diana

    http://wordpress.org/extend/plugins/advanced-custom-fields-nav-menu-field/

  2. Faison
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Diana,

    It looks like the ID and Class for your smoothmenu has DEACTIVATE added to the end of it. When I remove the DEACTIVATE in my browser, it looks almost right. I'm not sure why that's happening, so I would look into smoothmenu (which I know nothing about :( sorry) to find out why it might be adding DEACTIVATE to the ID and Class. Once you figure that out, the "Menu Shadow" will probably start to work again.

    Besides the DEACTIVATE causing issues, the WordPress function I use (wp_nav_menu) wraps up the menu in a div by default. When you remove the DEACTIVATE, the menu isn't tall enough, but removing the wrapping div fixes that.

    So I will add an option to the Nav Menu Items that allows you to choose if the menu is wrapped in a div or not. My weekend's busy with a bit of WordCamp Milwaukee, but look for an update towards the end of the weekend or Monday.

    With all that in mind though, do you plan on making that menu change depending on the page you're on? I ask because that's where this plugin shines. If not, it's probably more appropriate for you to use wp_nav_menu directly, since it gives you more granular control over your menu.

    Thanks,
    Faison

  3. mattsalvato
    Member
    Posted 1 year ago #

    Hi Faison,

    I actually added the DEACTIVATE myself to test out whether it was SmoothMenu ID / class causing the issue. Sorry I didn't clarify. I removed the deactivate, but the dropdown menu items still aren't showing. I will wait with baited breath for the div update :) hopefully that solves the issue. If not, hopefully there is another approach we can take to solve it.
    And yes, I specifically chose your plugin so I could change the menu based on the page. Compare http://hyattandweber.nextlevelclient.com/ to http://hyattandweber.nextlevelclient.com/practice-areas-2/.

    Thank you for all of your help!

    -Diana

  4. mattsalvato
    Member
    Posted 1 year ago #

    Figured it out. In nav-menu-v4.php, edit the wp_nav_menu array. (The bold code is what I added in)

    wp_nav_menu( array(
    'menu' => $value,
    'container' => false
    ) );

    Hope this and your upcoming update help out users in the future. Thanks again for pointing me in the right direction!

  5. Faison
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Diana,

    Thanks for the clarification. Also I'm glad to see it's as easy as removing the div that wraps a menu by default. If I have time tonight, I'll push out an update, otherwise tomorrow for sure.

    Thanks again,
    Faison

  6. Faison
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Diana,

    I just released the update, you can now specify the container when editing the Nav Menu Item in your Field Group.

    Please update the plugin, give it a whirl, and let me know how it goes :D

    Thanks,
    Faison

  7. Faison
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Diana,

    I'm going to mark this thread as Resolved. If it's still not working right, please un-resolve this post and tell me what's not working right.

    Thank you for your patience, Diana, please leave me a review here and also go back to the Plugin Page and click the "Works" button under Compatibility on the bottom right hand corner of the page.

    Thanks!
    ~Faison

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.