I’m using Sage 9.0.0 and I’m seeing a strange behaviour.
I have this code for my navigation:
@if (has_nav_menu('primary_navigation'))
{!!
wp_nav_menu( array(
'theme_location' => 'primary_navigation'
) );
!!}
@endif
I removed classes and walker to test it.
Now with yarn start everything is good.
Then I made a production build to test it on my server.
I can’t run composer install so I uploaded the vendor directory.
It had some errors uploading simlinks, not sure if that is important.
Now the strange thing is on my server I can’t see any menu.
(has_nav_menu('primary_navigation'))
return true but the menu is always empty. Navigation is created and set to primary_navigation.
Do I miss something?
And which folders are needed for production build?
I’m not sure how Sage knows that this is a prod build or not.
For now I uploaded: app, config, dist, resources and vendor.
I also don’t see any error in my log files.
Thanks!
Edit: Could this be a problem with the vendor folder?