Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Nav Questions #639

Closed
Boogonie opened this issue Dec 17, 2015 · 4 comments
Closed

Nav Questions #639

Boogonie opened this issue Dec 17, 2015 · 4 comments

Comments

@Boogonie
Copy link

I've been struggling with several Nav issues. I've downloaded a fresh install of the theme, added one menu assigned to the right top bar and mobile, and selected the off canvas option for mobile.

  1. Mobile doesn't work. I click the menu icon and nothing happens; and
  2. Is there a menu location for the left top bar? I've seen it in several screen shots here in the forum, but it's missing from the current version.
@andreaarcher
Copy link

I have the same problem

@mlangone
Copy link

mlangone commented Feb 4, 2016

This seemed to work for me with current version

Customize > Menus > Menu Location Mobile - Set the menu to use - Save
Then Customize > Mobile Menu Settings > Mobile navigation layout > Offcanvas - Save
Gives me a menu that opens like this

screen shot 2016-02-03 at 5 22 59 pm

@samirgh
Copy link

samirgh commented Mar 19, 2016

Mobile doesn't work. I click the menu icon and nothing happens

Check mobile for menu location and it should work.

@cmpreshn
Copy link

cmpreshn commented Apr 22, 2016

I was able to add a top-bar-left menu location, but can't get the toggle to work for this menu. In [theme]/library/navigation.php, first add the top bar left element to the register nav menus array:

register_nav_menus(array( 'top-bar-l' => 'Left Top Bar', 'top-bar-r' => 'Right Top Bar', 'mobile-nav' => 'Mobile', ));
Then add the following function after the register_nav_menus function call:
if ( ! function_exists( 'foundationpress_top_bar_l' ) ) { function foundationpress_top_bar_l() { wp_nav_menu( array( 'container' => false, 'menu_class' => 'dropdown menu', 'items_wrap' => '<ul id="%1$s" class="%2$s desktop-menu" data-dropdown-menu>%3$s</ul>', 'theme_location' => 'top-bar-l', 'depth' => 3, 'fallback_cb' => false, 'walker' => new Foundationpress_Top_Bar_Walker(), )); } }
This creates a Left Top Bar menu location which will show in WordPress Menu Settings / Theme Locations. I'm now able to get my menu to appear in either left or right top bar locations. However, when I select the left top bar, the menu toggle does not work. I do also have the 'Mobile' box checked for the menu.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants