Roots Discourse

Menu item just visible only after logging in

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']) !!}

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

Logged Out

Logged In

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

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