I'm trying to display an image next to the link of every menu. To achieve this I added a Media Library Picker Field to the Content Menu Item Content Type.
I then tried to figure out which .cshtml file should I override to show the image. The one I think is the most obvious to replace is the MenuItemLink.cshtml. So I copied it to my theme and override the content as you can see in the following image:
But as you can see in the next image, though the template has the "Hello world" sentence in a span, it is not rendered in the menu.
Can you please tell me what am I doing wrong?