I am Trouble Getting Navigation Menus to Show Up in Hugo Theme

Hey everyone,

I have been working on a Hugo site using one of the community themes & I am facing issue with the navigation menus. I set up my menu items in the config file under menu.main but for some reason they are not showing up in the actual site. Also I checked the theme’s layout files & it seems such as there is a menu block but maybe I am missing something in how it is being pulled in

I also tried switching themes just to see if it was a theme-specific thing but had the same issue in another one. So I am wondering if it has something to do with how I am structuring the config or maybe where I am placing the menu code.

I usually work more with backend stuff such as Java Training exercises so Hugo’s templating is still a bit new to me. Also i have check this Having trouble getting a theme to work sitll i am getting trouble. If anyone has run into this or has tips on how to properly hook menus into the layout I would really appreciate your help.

Thank you.:slight_smile:

welcome here.

with hugo there are some ways to define menus.

A theme will usually use one of that methods, but may also add special stuff and settings.

You think that it might be a problem with your setup and it seems you are right.

without knowing

  • the theme you use
  • the things you did
  • good to have output hugo env

it would be just guessing around.

let me please point to Requesting Help. and show us what you have.

as usual sharing your code would be the easiest approach.