How to enable link on Parent menu item?

My menus.en.toml has:

[[main]]
name = "About"
pageRef = "/about"

[[main]]
parent = "About"
name = "About Us"
pageRef = "/about"

[[main]]
parent = "About"
name = "Contact Us"
pageRef = "/contact"

…which displays fine, but the parent menu item (“About”) is NOT linked to the “/about” page. How do I enable being able to click on/link the parent item in a menu?

I’ve read about 8 pages on menus, but none triggered any solutions for me. Thanks in advance!

I am unable to reproduce the problem. Try it:

git clone --single-branch -b hugo-forum-topic-50471 https://github.com/jmooring/hugo-testing hugo-forum-topic-50471
cd hugo-forum-topic-50471
hugo server

This example above uses the menu template shown here:
https://gohugo.io/templates/menu/#example

The problem may be specific to your theme. If so you should contact the theme author for assistance.

1 Like

@jmooring - THANKS! Your example works fine for me too. I’m working on the HugoPlate template/theme, so will investigate further - now that I know its not a default for Hugo itself.

Much appreciated, especially the rapid response!

1 Like