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

Top bar with default primary wp menu #41

Closed
marissajmc opened this issue May 12, 2014 · 5 comments
Closed

Top bar with default primary wp menu #41

marissajmc opened this issue May 12, 2014 · 5 comments

Comments

@marissajmc
Copy link

Hello,
How do I configure the foundationPress 'top-bar-l' menu to use the default links generated by wordpress?

screen shot 2014-05-12 at 11 11 48 am

@olefredrik
Copy link
Owner

Hi,
I'm not sure I understand your question. What do you mean by links that are automatically generated by WordPress? In your WP-admin, if you go to Apperance -> Menus, you can configure what to show in what place.

menu

@marissajmc
Copy link
Author

Hi Ole,
I mean the page links that wordpress creates by default when you have this line in your theme:

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

I would prefer not to create a separate menu in the admin panel because the "auto add pages" option only adds top-level pages; my site will have at least 2 levels of navigation.

So I would like to use the FoundationPress top bar with the menu items generated automatically whenever you create a page/sub-page. Is this possible?

@davebonds
Copy link

In the navigation.php change the fallback_cb from false to the default wp_page_menu

@olefredrik
Copy link
Owner

@davebonds : thanks!
@marissajmc : can you please verify that changing fallback_cb from false to the default wp_page_menu in navigation.php will fix your issue?

@marissajmc
Copy link
Author

No, this didn't fix the issue. I changed fallback_cb to wp_page_menu and removed the custom menus I had created. This resulted in a collection of empty tag links and no menu visible on the front-end.

Is there something I need to change in the register_nav_menus fn as well?

screen shot 2014-07-03 at 6 58 13 pm

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

No branches or pull requests

3 participants