How to programmatically add a custom item at the beginning of the frontend main menu?

  1. Upgrade your Magento 2 installation at least to the 2.1.0-rc1.

See also: