Title: bento_primary_menu() location
Last modified: December 21, 2017

---

# bento_primary_menu() location

 *  [mistaken](https://wordpress.org/support/users/mistaken/)
 * (@mistaken)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bento_primary_menu-location/)
 * i am trying to add a menu locations/adjust the default menu at the top right.
 * Specifically, i am trying to move the primary menu to the left side, that will
   still collapse to the hamburger on mobile, and a right side set of links that
   will include social and logon options along with a foxy-cart cart inventory widget,
   that would still be at the top of the screen (under the hamburger) on mobile.
 * I have been walking through the PHP files, and found the function call bento_primary_menu()
   in the header.php file, but can not seem to locate the actual function.
 * or if there is an easier way to achieve this, i am open to that as well.
 * Regards,
 * Kevin
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbento_primary_menu-location%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bento_primary_menu-location/#post-9805596)
 * Hey Kevin,
 * thanks for choosing Bento!
 * The `bento_primary_menu()` function is defined on line 69 of the /includes/template-
   tags.php file (in general that’s where all similar rendering functions live in
   Bento, as per WP coding best practices). When you make changes to the theme’s
   php, make sure to do it via a [child](https://codex.wordpress.org/Child_Themes),
   otherwise they will be overwritten after the next Bento update.
    -  This reply was modified 8 years, 4 months ago by [satoristudio](https://wordpress.org/support/users/satoristudio/).
 *  Thread Starter [mistaken](https://wordpress.org/support/users/mistaken/)
 * (@mistaken)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bento_primary_menu-location/#post-9806180)
 * Thank you. . .
 * now i am even more lost than i was before. I expected to go to this location 
   and find html and maybe some controlling php for deciding which type of menu 
   layout had been selected from the customize settings.
 * instead i find
 *  wp_nav_menu(
 *  array(
 *  ‘theme_location’ => ‘primary-menu’,
 *  ‘depth’ => $depth,
 *  ‘menu_class’ => ‘primary-menu’,
 *  ‘container_class’ => ‘menu-container’,
 *  ‘link_before’ => ‘<span class=”menu-item-inner”>’,
 *  ‘link_after’ => ‘</span>’,
 *  ‘fallback_cb’ => ‘false’,
 *  )
 * inside a id=nav-primary. I am guessing that some of those variables are are loading
   from settings pulled in from some where else.
 * can you give me a clue where/how i might look either add or modify where the 
   existing location is.
 *  Thread Starter [mistaken](https://wordpress.org/support/users/mistaken/)
 * (@mistaken)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bento_primary_menu-location/#post-9814734)
 * if any one else ever needs this answered
 * find this line in the ‘templates-tags.php’
 * in the ‘bento_primary_menu’ function
 * <div id=”nav-primary” class=”nav”>
 * remove the ‘nav-primary’ id, this appears to be how the location of the menu 
   is controlled. now you can use a class or other id to style to your own needs.
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bento_primary_menu-location/#post-9817074)
 * Thank you for sharing, Kevin, much appreciated!
    An alternative solution would
   be to change the `container_class` parameter in the function you pasted above–
   this will change/add the class of the menu container, which can then be used 
   for CSS styling.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘bento_primary_menu() location’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bento/2.5/screenshot.png)
 * Bento
 * [Support Threads](https://wordpress.org/support/theme/bento/)
 * [Active Topics](https://wordpress.org/support/theme/bento/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bento/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bento/reviews/)

## Tags

 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [php files](https://wordpress.org/support/topic-tag/php-files/)

 * 4 replies
 * 2 participants
 * Last reply from: [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/bento_primary_menu-location/#post-9817074)
 * Status: not resolved