# Menu item just visible only after logging in

**URL:** https://discourse.roots.io/t/menu-item-just-visible-only-after-logging-in/18788
**Category:** sage
**Tags:** sage9, sage
**Created:** 2020-07-28T12:44:29Z
**Posts:** 1

## Post 1 by @Bhanu_Kumar_Singh — 2020-07-28T12:44:29Z

Hey I have setup a menu on the header template file.

```
@if (has_nav_menu('primary_navigation'))
        {!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav']) !!}
      @endif
```

After building `yarn build:production` whenever I visit after logging in I see menu being rendered. But when I log out I don’t.

 ![image](https://discourse.roots.io/uploads/default/original/2X/b/b8dd59b10ee5826fd76613af54e224d7c0321bae.png) Logged Out

 ![image](https://discourse.roots.io/uploads/default/original/2X/3/3e78522d4ca8b093f8b07c9b69377369273bf345.png) Logged In

It doesn’t show when I am working at `yarn start`.

---

## Post 2 by @system — 2020-09-08T12:44:32Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
