Support » Plugin: Advanced Custom Fields: Nav Menu Field » Drop-down menu not showing

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Faison

    (@faison)

    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

    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

    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!

    Plugin Author Faison

    (@faison)

    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

    Plugin Author Faison

    (@faison)

    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 😀

    Thanks,
    Faison

    Plugin Author Faison

    (@faison)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Drop-down menu not showing’ is closed to new replies.